comparison arogue5/rip.c @ 307:32bc72dcbf4f

Fix some warnings related to format strings.
author John "Elwin" Edwards
date Fri, 30 Apr 2021 20:48:30 -0400
parents e52a8a7ad4c5
children
comparison
equal deleted inserted replaced
306:057c5114e244 307:32bc72dcbf4f
630 { 630 {
631 encread((char *) &scores[i].sc_name, LINELEN, inf); 631 encread((char *) &scores[i].sc_name, LINELEN, inf);
632 encread((char *) &scores[i].sc_system, SYSLEN, inf); 632 encread((char *) &scores[i].sc_system, SYSLEN, inf);
633 encread((char *) &scores[i].sc_login, LINELEN, inf); 633 encread((char *) &scores[i].sc_login, LINELEN, inf);
634 encread((char *) scoreline, 100, inf); 634 encread((char *) scoreline, 100, inf);
635 sscanf(scoreline, " %lu %d %d %d %d %d \n", 635 sscanf(scoreline, " %lu %hd %hd %hd %hd %hd \n",
636 &scores[i].sc_score, &scores[i].sc_flgs, 636 &scores[i].sc_score, &scores[i].sc_flgs,
637 &scores[i].sc_level, &scores[i].sc_ctype, 637 &scores[i].sc_level, &scores[i].sc_ctype,
638 &scores[i].sc_monster, &scores[i].sc_quest); 638 &scores[i].sc_monster, &scores[i].sc_quest);
639 } 639 }
640 } 640 }