Skip to content
Snippets Groups Projects
Commit 0440df56 authored by Rob Swindell's avatar Rob Swindell :speech_balloon:
Browse files

Fix reported Clang warnings about printf format strings

format specifies type 'unsigned short' but the argument has type 'unsigned int'
parent 84dd1bc7
Branches
No related tags found
1 merge request!463MRC mods by Codefenix (2024-10-20)
Pipeline #4441 passed
......@@ -2428,22 +2428,22 @@ void sys_cfg(void)
snprintf(opt[i++],MAX_OPLN,"%-27.27s%s","Sysop Chat Override"
,cfg.sys_chat_arstr);
if(cfg.user_backup_level)
sprintf(str,"%hu",cfg.user_backup_level);
sprintf(str,"%u",cfg.user_backup_level);
else
strcpy(str,"None");
snprintf(opt[i++],MAX_OPLN,"%-27.27s%s","User Database Backups",str);
if(cfg.mail_backup_level)
sprintf(str,"%hu",cfg.mail_backup_level);
sprintf(str,"%u",cfg.mail_backup_level);
else
strcpy(str,"None");
snprintf(opt[i++],MAX_OPLN,"%-27.27s%s","Mail Database Backups",str);
if(cfg.config_backup_level)
sprintf(str,"%hu",cfg.config_backup_level);
sprintf(str,"%u",cfg.config_backup_level);
else
strcpy(str,"None");
snprintf(opt[i++],MAX_OPLN,"%-27.27s%s","Configuration Backups",str);
if(cfg.max_log_size && cfg.max_logs_kept) {
SAFEPRINTF2(str, "%s bytes, keep %hu"
SAFEPRINTF2(str, "%s bytes, keep %u"
,byte_count_to_str(cfg.max_log_size, tmp, sizeof(tmp))
,cfg.max_logs_kept);
} else {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment