fix
authorChristian Grothoff <christian@grothoff.org>
Thu, 28 Jul 2011 19:14:09 +0000 (19:14 +0000)
committerChristian Grothoff <christian@grothoff.org>
Thu, 28 Jul 2011 19:14:09 +0000 (19:14 +0000)
src/util/time.c

index 3631c0a7868cc6110a796193e55b36b391ca3874..3dc2ef03a9e4d1cdfb77c1dda5199574ec0fe880 100644 (file)
@@ -501,7 +501,7 @@ GNUNET_TIME_relative_to_string (struct GNUNET_TIME_Relative time)
   static char time_string[21];
   memset(time_string, 0, sizeof(time_string));
 
-  sprintf(time_string, "%lu", time.rel_value);
+  sprintf(time_string, "%llu", (unsigned long long) time.rel_value);
   return (const char *) time_string;
 }