summary refs log tree commit diff stats
path: root/src/fe-gtk/banlist.c
diff options
context:
space:
mode:
authorTingPing <tngpng@gmail.com>2013-04-02 08:06:38 -0300
committerTingPing <tngpng@gmail.com>2013-04-02 08:06:38 -0300
commit920839cf1c160cac5bd202a059ba4f2b3966b049 (patch)
treebd94cfba5121a6834ec77caa8d4eb4c5b06caf9a /src/fe-gtk/banlist.c
parentd8eec06473b4234293f5e802bbbfe9afed542530 (diff)
fix strptime on bsd
Diffstat (limited to 'src/fe-gtk/banlist.c')
-rw-r--r--src/fe-gtk/banlist.c6
1 files changed, 3 insertions, 3 deletions
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);