Fix some warnings related to format strings.
This commit is contained in:
parent
3ac49bdaa0
commit
ca9e48d5f6
8 changed files with 8 additions and 8 deletions
|
|
@ -854,7 +854,7 @@ shell(void)
|
||||||
|
|
||||||
md_shellescape();
|
md_shellescape();
|
||||||
|
|
||||||
printf(retstr);
|
printf("%s", retstr);
|
||||||
fflush(stdout);
|
fflush(stdout);
|
||||||
nonl();
|
nonl();
|
||||||
noecho();
|
noecho();
|
||||||
|
|
|
||||||
|
|
@ -107,7 +107,7 @@ badcheck(char *name, struct magic_item *magic, int bound)
|
||||||
printf("\nBad percentages for %s:\n", name);
|
printf("\nBad percentages for %s:\n", name);
|
||||||
for (end = &magic[bound] ; magic < end ; magic++)
|
for (end = &magic[bound] ; magic < end ; magic++)
|
||||||
printf("%4d%% %s\n", magic->mi_prob, magic->mi_name);
|
printf("%4d%% %s\n", magic->mi_prob, magic->mi_name);
|
||||||
printf(retstr);
|
printf("%s", retstr);
|
||||||
fflush(stdout);
|
fflush(stdout);
|
||||||
while (getchar() != '\n')
|
while (getchar() != '\n')
|
||||||
continue;
|
continue;
|
||||||
|
|
|
||||||
|
|
@ -632,7 +632,7 @@ scorein(struct sc_ent scores[], FILE *inf)
|
||||||
encread((char *) &scores[i].sc_system, SYSLEN, inf);
|
encread((char *) &scores[i].sc_system, SYSLEN, inf);
|
||||||
encread((char *) &scores[i].sc_login, LINELEN, inf);
|
encread((char *) &scores[i].sc_login, LINELEN, inf);
|
||||||
encread((char *) scoreline, 100, inf);
|
encread((char *) scoreline, 100, inf);
|
||||||
sscanf(scoreline, " %lu %d %d %d %d %d \n",
|
sscanf(scoreline, " %lu %hd %hd %hd %hd %hd \n",
|
||||||
&scores[i].sc_score, &scores[i].sc_flgs,
|
&scores[i].sc_score, &scores[i].sc_flgs,
|
||||||
&scores[i].sc_level, &scores[i].sc_ctype,
|
&scores[i].sc_level, &scores[i].sc_ctype,
|
||||||
&scores[i].sc_monster, &scores[i].sc_quest);
|
&scores[i].sc_monster, &scores[i].sc_quest);
|
||||||
|
|
|
||||||
|
|
@ -1047,7 +1047,7 @@ shell(void)
|
||||||
|
|
||||||
md_shellescape();
|
md_shellescape();
|
||||||
|
|
||||||
printf(retstr);
|
printf("%s", retstr);
|
||||||
noecho();
|
noecho();
|
||||||
raw();
|
raw();
|
||||||
keypad(cw,1);
|
keypad(cw,1);
|
||||||
|
|
|
||||||
|
|
@ -128,7 +128,7 @@ badcheck(char *name, struct magic_item *magic, int bound)
|
||||||
printf("\nBad percentages for %s:\n", name);
|
printf("\nBad percentages for %s:\n", name);
|
||||||
for (end = &magic[bound] ; magic < end ; magic++)
|
for (end = &magic[bound] ; magic < end ; magic++)
|
||||||
printf("%4d%% %s\n", magic->mi_prob, magic->mi_name);
|
printf("%4d%% %s\n", magic->mi_prob, magic->mi_name);
|
||||||
printf(retstr);
|
printf("%s", retstr);
|
||||||
fflush(stdout);
|
fflush(stdout);
|
||||||
while (getchar() != '\n')
|
while (getchar() != '\n')
|
||||||
continue;
|
continue;
|
||||||
|
|
|
||||||
|
|
@ -1079,7 +1079,7 @@ shell(void)
|
||||||
|
|
||||||
md_shellescape();
|
md_shellescape();
|
||||||
|
|
||||||
printf(retstr);
|
printf("%s", retstr);
|
||||||
fflush(stdout);
|
fflush(stdout);
|
||||||
noecho();
|
noecho();
|
||||||
crmode();
|
crmode();
|
||||||
|
|
|
||||||
|
|
@ -119,7 +119,7 @@ badcheck(char *name, struct magic_item *magic, int bound)
|
||||||
printf("\nBad percentages for %s:\n", name);
|
printf("\nBad percentages for %s:\n", name);
|
||||||
for (end = &magic[bound] ; magic < end ; magic++)
|
for (end = &magic[bound] ; magic < end ; magic++)
|
||||||
printf("%4d%% %s\n", magic->mi_prob, magic->mi_name);
|
printf("%4d%% %s\n", magic->mi_prob, magic->mi_name);
|
||||||
printf(retstr);
|
printf("%s", retstr);
|
||||||
fflush(stdout);
|
fflush(stdout);
|
||||||
while (getchar() != '\n')
|
while (getchar() != '\n')
|
||||||
continue;
|
continue;
|
||||||
|
|
|
||||||
|
|
@ -3102,7 +3102,7 @@ rs_print_thing(FILE *outf, struct thing *thing, char *prefix, int list, int inde
|
||||||
fprintf(outf,"%st_flags : ", prefix);
|
fprintf(outf,"%st_flags : ", prefix);
|
||||||
|
|
||||||
for(i = 0; i<16; i++)
|
for(i = 0; i<16; i++)
|
||||||
fprintf(outf,"%X ",thing->t_flags[i]);
|
fprintf(outf,"%lX ",thing->t_flags[i]);
|
||||||
fprintf(outf,"\n");
|
fprintf(outf,"\n");
|
||||||
|
|
||||||
fprintf(outf,"%st_pack : %p\n",prefix,thing->t_pack);
|
fprintf(outf,"%st_pack : %p\n",prefix,thing->t_pack);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue