diff --git a/server.c b/server.c index 97dd1fb..41350d1 100644 --- a/server.c +++ b/server.c @@ -292,11 +292,11 @@ void execute_cgi(int client, const char *path, const char *method, const char *q off_t get_file_size(const char *filepath) { struct stat statbuf; if (stat(filepath, &statbuf) == 0) { - printf("file size: %u\n", statbuf.st_size); + printf("file size: %lu\n", statbuf.st_size); if(statbuf.st_size == 0) { FILE* fp = fopen(filepath, "ab+"); off_t sz = ftell(fp); - printf("ftell size: %u\n", sz); + printf("ftell size: %lu\n", sz); return sz; } return statbuf.st_size;