13 lines
611 B
Plaintext

$OpenBSD: patch-camel_camel-lock_c,v 1.4 2011/09/12 07:26:19 ajacoutot Exp $
--- camel/camel-lock.c.orig Thu Sep 16 14:47:54 2010
+++ camel/camel-lock.c Tue May 17 13:40:32 2011
@@ -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 int)now-st.st_ctime));
if (st.st_ctime < now - CAMEL_LOCK_DOT_STALE) {
d(printf("Removing it now\n"));
unlink (lock);