summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--usr.bin/csup/proto.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.bin/csup/proto.c b/usr.bin/csup/proto.c
index 166a134..145deb3 100644
--- a/usr.bin/csup/proto.c
+++ b/usr.bin/csup/proto.c
@@ -35,6 +35,7 @@
#include <assert.h>
#include <err.h>
#include <errno.h>
+#include <inttypes.h>
#include <netdb.h>
#include <pthread.h>
#include <signal.h>
@@ -751,7 +752,7 @@ proto_printf(struct stream *wr, const char *format, ...)
break;
case 'O':
off = va_arg(ap, off_t);
- rv = stream_printf(wr, "%llu", off);
+ rv = stream_printf(wr, "%" PRId64, off);
break;
case 'S':
s = va_arg(ap, char *);
OpenPOWER on IntegriCloud