diff options
author | George Hazan <george.hazan@gmail.com> | 2015-08-28 16:22:41 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2015-08-28 16:22:41 +0000 |
commit | c370af60855db957c5b200914bf0bde743845528 (patch) | |
tree | 0bd2ef127097c9e937c2650e8b202c3f09453323 /plugins/StartupSilence | |
parent | 7f082bd5d4865c30b313661b7a02f048b4b137be (diff) |
mir_sntprintf / mir_snprintf: obsoleted second parameter removed wherever possible
git-svn-id: http://svn.miranda-ng.org/main/trunk@15064 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/StartupSilence')
-rw-r--r-- | plugins/StartupSilence/src/main.cpp | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/plugins/StartupSilence/src/main.cpp b/plugins/StartupSilence/src/main.cpp index 0cc5698791..767fb8bfc7 100644 --- a/plugins/StartupSilence/src/main.cpp +++ b/plugins/StartupSilence/src/main.cpp @@ -160,16 +160,16 @@ void EnablePopupModule() void InitSettings()
{
if(gethostname(hostname, _countof(hostname)) == 0){
- mir_snprintf(EnabledComp, _countof(EnabledComp), "%s_Enabled", hostname);
- mir_snprintf(DelayComp, _countof(DelayComp), "%s_Delay", hostname);
- mir_snprintf(PopUpComp, _countof(PopUpComp), "%s_PopUp", hostname);
- mir_snprintf(PopUpTimeComp, _countof(PopUpTimeComp), "%s_PopUpTime", hostname);
- mir_snprintf(MenuitemComp, _countof(MenuitemComp), "%s_MenuItem", hostname);
- mir_snprintf(TTBButtonsComp, _countof(TTBButtonsComp), "%s_TTBButtons", hostname);
- mir_snprintf(DefSoundComp, _countof(DefSoundComp), "%s_DefSound", hostname);
- mir_snprintf(DefPopupComp, _countof(DefPopupComp), "%s_DefPopup", hostname);
- mir_snprintf(DefEnabledComp, _countof(DefEnabledComp), "%s_DefEnabled", hostname);
- mir_snprintf(NonStatusAllowComp, _countof(NonStatusAllowComp), "%s_NonStatusAllow", hostname);
+ mir_snprintf(EnabledComp, "%s_Enabled", hostname);
+ mir_snprintf(DelayComp, "%s_Delay", hostname);
+ mir_snprintf(PopUpComp, "%s_PopUp", hostname);
+ mir_snprintf(PopUpTimeComp, "%s_PopUpTime", hostname);
+ mir_snprintf(MenuitemComp, "%s_MenuItem", hostname);
+ mir_snprintf(TTBButtonsComp, "%s_TTBButtons", hostname);
+ mir_snprintf(DefSoundComp, "%s_DefSound", hostname);
+ mir_snprintf(DefPopupComp, "%s_DefPopup", hostname);
+ mir_snprintf(DefEnabledComp, "%s_DefEnabled", hostname);
+ mir_snprintf(NonStatusAllowComp, "%s_NonStatusAllow", hostname);
}
//first run on the host, initial setting
if (!(delay = db_get_dw(NULL, MODULE_NAME, DelayComp, 0)))
@@ -340,7 +340,7 @@ void RemoveTTButtons() HANDLE GetIconHandle(char *szIcon)
{
char szSettingName[64];
- mir_snprintf(szSettingName, _countof(szSettingName), "%s_%s", MENU_NAME, szIcon);
+ mir_snprintf(szSettingName, "%s_%s", MENU_NAME, szIcon);
return IcoLib_GetIconHandle(szSettingName);
}
|