changeset 387:de6060230ec5

fixed compiler warnings
author nadvornik
date Wed, 16 Apr 2008 20:32:44 +0000
parents 0226daf8c30b
children 5186f8e38cb8
files src/main.c
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- 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;
 }