Compile on 64bit CPU

This commit is contained in:
Neale Pickett 2012-11-16 15:15:34 -07:00
parent 344be53929
commit 19a1ab2d46
1 changed files with 1 additions and 1 deletions

2
bot.c
View File

@ -284,7 +284,7 @@ handle_file(FILE *f, void (*func) (char *))
while (fgets(line, sizeof line, f)) {
linelen = strlen(line);
if (line[linelen-1] != '\n') {
fprintf(stderr, "warning: dropping %d bytes (no trailing newline)\n", linelen);
fprintf(stderr, "warning: dropping %u bytes (no trailing newline)\n", (unsigned int)linelen);
} else {
line[linelen-1] = '\0';
func(line);