$OpenBSD: patch-fetchnews_c,v 1.1 2015/04/06 16:29:48 jca Exp $
Fix format strings for time_t printing.
--- fetchnews.c.orig	Fri Jan  2 21:54:47 2015
+++ fetchnews.c	Fri Jan  2 21:57:40 2015
@@ -1522,9 +1522,9 @@ static int expire_interesting(void) {
 	    (now - st.st_ctime > (timeout_long * SECONDS_PER_DAY))) {
 	    if (verbose > 1)
 		printf("unsubscribing from %s\n", de->d_name);
-	    syslog(LOG_INFO, "unsubscribing from %s (current time: %ld): "
-		   "ctime age %ld, mtime age %ld", de->d_name, (long)now,
-		   (long)now - st.st_ctime, (long)now - st.st_mtime);
+	    syslog(LOG_INFO, "unsubscribing from %s (current time: %lld): "
+		"ctime age %lld, mtime age %lld", de->d_name, (long long)now,
+		(long long)now - st.st_ctime, (long long)now - st.st_mtime);
 	    unlink(s);
 	}
     }
@@ -2227,14 +2227,14 @@ checkactive(void)
     if ((now - st.st_mtime) < (timeout_active * SECONDS_PER_DAY)) {
 	if (debugmode)
 	    syslog(LOG_DEBUG,
-		   "Last LIST done %d seconds ago: NEWGROUPS\n",
-		   (int)(now - st.st_mtime));
+		   "Last LIST done %lld seconds ago: NEWGROUPS\n",
+	           (long long)now - st.st_mtime);
 	free(s);
 	return st.st_atime;
     } else {
 	if (debugmode)
-	    syslog(LOG_DEBUG, "Last LIST done %d seconds ago: LIST\n",
-		   (int)(now - st.st_mtime));
+	    syslog(LOG_DEBUG, "Last LIST done %lld seconds ago: LIST\n",
+	        (long long)now - st.st_mtime);
 	free(s);
 	return 0;
     }
