From 920839cf1c160cac5bd202a059ba4f2b3966b049 Mon Sep 17 00:00:00 2001 From: TingPing Date: Tue, 2 Apr 2013 08:06:38 -0300 Subject: fix strptime on bsd --- src/fe-gtk/banlist.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src') diff --git a/src/fe-gtk/banlist.c b/src/fe-gtk/banlist.c index 16e0d66a..3abd48ac 100644 --- a/src/fe-gtk/banlist.c +++ b/src/fe-gtk/banlist.c @@ -584,7 +584,7 @@ banlist_toggle (GtkWidget *item, gpointer data) * #define DATE_FORMAT "%a %b %d %T %Y" */ static void -strptime (char *ti, struct tm *tm) +banlist_strptime (char *ti, struct tm *tm) { /* Expect something like "Sat Mar 16 21:24:27 2013" */ static char *mon[] = { "Jan", "Feb", "Mar", "Apr", "May", "Jun", @@ -626,8 +626,8 @@ banlist_date_sort (GtkTreeModel *model, GtkTreeIter *a, GtkTreeIter *b, gpointer gtk_tree_model_get(model, a, DATE_COLUMN, &time1, -1); gtk_tree_model_get(model, b, DATE_COLUMN, &time2, -1); - strptime (time1, &tm1); - strptime (time2, &tm2); + banlist_strptime (time1, &tm1); + banlist_strptime (time2, &tm2); t1 = mktime (&tm1); t2 = mktime (&tm2); -- cgit 1.4.1