# HG changeset patch # User nadvornik # Date 1208377964 0 # Node ID de6060230ec56054f13395f4a4b02e3c24be9778 # Parent 0226daf8c30bacb76a450cd5f135fa12873334ba fixed compiler warnings diff -r 0226daf8c30b -r de6060230ec5 src/main.c --- a/src/main.c Wed Apr 16 20:15:42 2008 +0000 +++ b/src/main.c Wed Apr 16 20:32:44 2008 +0000 @@ -119,7 +119,7 @@ const gchar *get_exec_time() { - static timestr[20]; + static gchar timestr[20]; static struct timeval start_tv = {0, 0}; struct timeval tv = {0, 0}; @@ -137,7 +137,7 @@ tv.tv_sec -= 1; } - g_snprintf(timestr, sizeof(timestr), "%5d.%06d", tv.tv_sec, tv.tv_usec); + g_snprintf(timestr, sizeof(timestr), "%5d.%06d", (int)tv.tv_sec, (int)tv.tv_usec); return timestr; }