diff options
author | claudio <claudio@openbsd.org> | 2019-04-10 15:23:27 +0000 |
---|---|---|
committer | claudio <claudio@openbsd.org> | 2019-04-10 15:23:27 +0000 |
commit | c4e5c4b377785c15d8e8022d9a85c41e2f9180e4 (patch) | |
tree | 4c5e81a4d9a9dc18f5b66f5fc41e0aa9739df09a /usr.sbin/bgpctl | |
parent | Include endian.h since htobe* or be*toh is used. Helps with protable. (diff) | |
download | wireguard-openbsd-c4e5c4b377785c15d8e8022d9a85c41e2f9180e4.tar.xz wireguard-openbsd-c4e5c4b377785c15d8e8022d9a85c41e2f9180e4.zip |
Instead of a (ulong) case just use %zu in printf and remove the cast.
Helps portable.
OK deraadt@
Diffstat (limited to 'usr.sbin/bgpctl')
-rw-r--r-- | usr.sbin/bgpctl/irr_parser.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/bgpctl/irr_parser.c b/usr.sbin/bgpctl/irr_parser.c index e5598c35643..bd415a79dfe 100644 --- a/usr.sbin/bgpctl/irr_parser.c +++ b/usr.sbin/bgpctl/irr_parser.c @@ -1,4 +1,4 @@ -/* $OpenBSD: irr_parser.c,v 1.14 2015/04/25 21:44:26 phessler Exp $ */ +/* $OpenBSD: irr_parser.c,v 1.15 2019/04/10 15:23:27 claudio Exp $ */ /* * Copyright (c) 2007 Henning Brauer <henning@openbsd.org> @@ -107,7 +107,7 @@ grow_parsebuf(void) parsebuflen = newlen; if (0) - fprintf(stderr, "parsebuf now %lu bytes\n", (ulong)parsebuflen); + fprintf(stderr, "parsebuf now %zu bytes\n", parsebuflen); } char * |