In usr.bin/csup/proto.c, use the correct printf length modifier to print

an off_t.

MFC after:	1 week
This commit is contained in:
Dimitry Andric 2011-12-17 13:52:53 +00:00
parent 582ad8aebf
commit f666b9058d

View File

@ -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 *);