# /* exits */
# fprintf (fp, "Exits %4d (%8d bytes)\n",
# top_exit, top_exit * (sizeof (*exit)));
# /* exits */
# fprintf (fp, "Exits %4d (%8ld bytes)\n",
# top_exit, top_exit * (sizeof (*exit)));
fprintf (fp, "Mobs %4d (%8d bytes), %2d free (%d bytes)\n",
count, count * (sizeof (*fch)), count2,
count2 * (sizeof (*fch))); /*line 3368*/
fprintf (fp, "Mobs %4d (%8lu bytes), %2d free (%lu bytes)\n",
count, count * (sizeof (*fch)), count2,
count2 * (sizeof (*fch))); /*line 3368*/
I copied over my mud to the server and did a "make clean"/"make".
I got these warnings when I "make" 'd:
db.c: In function 'do_dump':
db.c:3350: warning: format '%8d' expects type 'int', but argument 4 has type 'long unsigned int'
db.c:3368: warning: format '%8d' expects type 'int', but argument 4 has type 'long unsigned int'
db.c:3368: warning: format '%d' expects type 'int', but argument 6 has type 'long unsigned int'
db.c:3377: warning: format '%8d' expects type 'int', but argument 4 has type 'long unsigned int'
db.c:3377: warning: format '%d' expects type 'int', but argument 6 has type 'long unsigned int'
db.c:3388: warning: format '%8d' expects type 'int', but argument 4 has type 'long unsigned int'
db.c:3388: warning: format '%d' expects type 'int', but argument 6 has type 'long unsigned int'
db.c:3400: warning: format '%8d' expects type 'int', but argument 4 has type 'long unsigned int'
db.c:3417: warning: format '%8d' expects type 'int', but argument 4 has type 'long unsigned int'
db.c:3417: warning: format '%d' expects type 'int', but argument 6 has type 'long unsigned int'
db.c:3426: warning: format '%8d' expects type 'int', but argument 4 has type 'long unsigned int'
db.c:3426: warning: format '%d' expects type 'int', but argument 6 has type 'long unsigned int'
db.c:3430: warning: format '%8d' expects type 'int', but argument 4 has type 'long unsigned int'
db.c:3434: warning: format '%8d' expects type 'int', but argument 4 has type 'long unsigned int'
I did not get these warnings when I was using Cygwin..
This is the code it is refering to:
Is there a need to fix this error? If so what exactly should I be looking at?
Thanks.