$OpenBSD: patch-camel_camel-lock_c,v 1.7 2012/10/18 13:54:56 ajacoutot Exp $

XXX remove when we have a 64-bit time_t

--- camel/camel-lock.c.orig	Fri Sep 28 07:55:00 2012
+++ camel/camel-lock.c	Fri Sep 28 07:55:10 2012
@@ -128,7 +128,7 @@ camel_lock_dot (const gchar *path,
 		/* check for stale lock, kill it */
 		if (g_stat (lock, &st) == 0) {
 			time_t now = time (NULL);
-			(printf ("There is an existing lock %ld seconds old\n", now - st.st_ctime));
+			(printf ("There is an existing lock %ld seconds old\n", (long)now - st.st_ctime));
 			if (st.st_ctime < now - CAMEL_LOCK_DOT_STALE) {
 				d (printf ("Removing it now\n"));
 				unlink (lock);
