Cleanup the time_t handling in log.c release-2.x.y

Sun, 13 Jan 2013 13:59:18 -0600

author
Richard Laager <rlaager@pidgin.im>
date
Sun, 13 Jan 2013 13:59:18 -0600
branch
release-2.x.y
changeset 33597
8ab5ed149286
parent 33596
ddb6a095d2e5
child 33605
e85b5b8a4087
child 33610
412e9e76b589
child 33611
c5bf67fcaad0

Cleanup the time_t handling in log.c

libpurple/log.c file | annotate | diff | comparison | revisions
--- a/libpurple/log.c	Sun Jan 13 13:55:15 2013 -0600
+++ b/libpurple/log.c	Sun Jan 13 13:59:18 2013 -0600
@@ -1827,7 +1827,6 @@
 					log->logger_data = data;
 					list = g_list_prepend(list, log);
 
-					/* XXX: There is apparently Is there a proper way to print a time_t? */
 					if (index != NULL)
 						fprintf(index, "%d\t%d\t%lu\n", data->offset, data->length, (unsigned long)log->time);
 				}
@@ -1887,9 +1886,8 @@
 			log->logger_data = data;
 			list = g_list_prepend(list, log);
 
-			/* XXX: Is there a proper way to print a time_t? */
 			if (index != NULL)
-				fprintf(index, "%d\t%d\t%d\n", data->offset, data->length, (int)log->time);
+				fprintf(index, "%d\t%d\t%lu\n", data->offset, data->length, (unsigned long)log->time);
 		}
 	}
 

mercurial