/pidgin/main: 8ab5ed149286: Cleanup the time_t handling in log.c

Richard Laager rlaager at pidgin.im
Sun Jan 13 17:02:39 EST 2013


Changeset: 8ab5ed14928636b06654309c999145548bb93601
Author:	 Richard Laager <rlaager at pidgin.im>
Date:	 2013-01-13 13:59 -0600
Branch:	 release-2.x.y
URL: http://hg.pidgin.im/pidgin/main/rev/8ab5ed149286

Description:

Cleanup the time_t handling in log.c

diffstat:

 libpurple/log.c |  4 +---
 1 files changed, 1 insertions(+), 3 deletions(-)

diffs (22 lines):

diff --git a/libpurple/log.c b/libpurple/log.c
--- a/libpurple/log.c
+++ b/libpurple/log.c
@@ -1827,7 +1827,6 @@ static GList *old_logger_list(PurpleLogT
 					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 @@ static GList *old_logger_list(PurpleLogT
 			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);
 		}
 	}
 



More information about the Commits mailing list