summaryrefslogtreecommitdiffstats
path: root/usr.bin/csup/proto.c
diff options
context:
space:
mode:
authordim <dim@FreeBSD.org>2011-12-17 13:52:53 +0000
committerdim <dim@FreeBSD.org>2011-12-17 13:52:53 +0000
commit11ec38a1ad0863a93ee2db598e3c6abd2e6472f4 (patch)
tree304b9ef7fb800bba2ebb284b567927f6a9193909 /usr.bin/csup/proto.c
parentbea618a3e2513ddfd332d0f307b08166002c9d74 (diff)
downloadFreeBSD-src-11ec38a1ad0863a93ee2db598e3c6abd2e6472f4.zip
FreeBSD-src-11ec38a1ad0863a93ee2db598e3c6abd2e6472f4.tar.gz
In usr.bin/csup/proto.c, use the correct printf length modifier to print
an off_t. MFC after: 1 week
Diffstat (limited to 'usr.bin/csup/proto.c')
-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