$NetBSD: patch-aq,v 1.2 2004/08/23 15:18:02 tv Exp $

--- src/toss/history.c.orig	2003-02-16 10:39:02.000000000 -0500
+++ src/toss/history.c
@@ -151,8 +151,8 @@ static int hi_write_t(time_t t, time_t m
     }
 
     /* Write MSGID line to history text file */
-    debug(7, "history: offset=%ld: %s %ld", offset, msgid, t);
-    ret = fprintf(hi_file, "%s\t%ld\n", msgid, t);
+    debug(7, "history: offset=%ld: %s %ld", offset, msgid, (long) t);
+    ret = fprintf(hi_file, "%s\t%ld\n", msgid, (long) t);
     if (ret == ERROR || fflush(hi_file) == ERROR)
     {
 	log("$ERROR: write to MSGID history failed");
