Browse Source

Fix harmless warning.

util.c: In function p_info:
util.c:157: warning: format %08ld expects type long int, but argument 4 has type __darwin_suseconds_t
Georgi Chorbadzhiyski 10 years ago
parent
commit
a8b605f131
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      util.c

+ 1
- 1
util.c View File

@@ -154,7 +154,7 @@ void p_info(const char *fmt, ...) {
154 154
 	if (DEBUG > 0) {
155 155
 		struct timeval tv;
156 156
 		gettimeofday(&tv, NULL);
157
-		fprintf(stdout, "%08ld.%08ld ", tv.tv_sec, tv.tv_usec);
157
+		fprintf(stdout, "%08ld.%08ld ", (long)tv.tv_sec, (long)tv.tv_usec);
158 158
 
159 159
 		char date[64];
160 160
 		struct tm tm;

Loading…
Cancel
Save