diff options
author | 2015-12-11 21:37:03 +0000 | |
---|---|---|
committer | 2015-12-11 21:37:03 +0000 | |
commit | 97865f9b96d84f75659d9775132ecc66ab974b59 (patch) | |
tree | 6f08379fec7db5bef5af819f905c96ccac74f961 | |
parent | rename header_masquerade_callback() to header_domain_append_callback(), the (diff) | |
download | wireguard-openbsd-97865f9b96d84f75659d9775132ecc66ab974b59.tar.xz wireguard-openbsd-97865f9b96d84f75659d9775132ecc66ab974b59.zip |
Use %zu to print size_t's rather than casting to u_long.
ok espie@
-rw-r--r-- | usr.bin/make/arch.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/usr.bin/make/arch.c b/usr.bin/make/arch.c index 9aadc4082dc..899a47245c9 100644 --- a/usr.bin/make/arch.c +++ b/usr.bin/make/arch.c @@ -1,4 +1,4 @@ -/* $OpenBSD: arch.c,v 1.85 2015/01/16 15:36:29 deraadt Exp $ */ +/* $OpenBSD: arch.c,v 1.86 2015/12/11 21:37:03 mmcc Exp $ */ /* $NetBSD: arch.c,v 1.17 1996/11/06 17:58:59 christos Exp $ */ /* @@ -649,8 +649,8 @@ ArchSVR4Entry(struct SVR4namelist *l, const char *name, size_t size, FILE *arch) break; } if (DEBUG(ARCH)) - printf("Found svr4 archive name table with %lu entries\n", - (u_long)entry); + printf("Found svr4 archive name table with %zu entries\n", + entry); return (char *)svr4list; } /* Then the names themselves are given as offsets in this table. */ @@ -665,8 +665,8 @@ ArchSVR4Entry(struct SVR4namelist *l, const char *name, size_t size, FILE *arch) } if (entry >= l->fnamesize) { if (DEBUG(ARCH)) - printf("SVR4 entry offset /%s is greater than %lu\n", - name, (u_long)l->fnamesize); + printf("SVR4 entry offset /%s is greater than %zu\n", + name, l->fnamesize); return NULL; } |