diff options
author | ume <ume@FreeBSD.org> | 2003-10-26 12:00:27 +0000 |
---|---|---|
committer | ume <ume@FreeBSD.org> | 2003-10-26 12:00:27 +0000 |
commit | 5d571f04bf529f468ed6e1407bfece33524d3d01 (patch) | |
tree | ff0d2c80d0e47dd1471e1661b5f148a542ae754c /lib/libipsec/pfkey_dump.c | |
parent | 9bbe925835f1c09efa797b9a89cda93bf5f0b32d (diff) | |
download | FreeBSD-src-5d571f04bf529f468ed6e1407bfece33524d3d01.zip FreeBSD-src-5d571f04bf529f468ed6e1407bfece33524d3d01.tar.gz |
- errx() doesn't need `\n'.
- use %u for unsigned variable.
Obtained from: KAME
Diffstat (limited to 'lib/libipsec/pfkey_dump.c')
-rw-r--r-- | lib/libipsec/pfkey_dump.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/libipsec/pfkey_dump.c b/lib/libipsec/pfkey_dump.c index 4d8eb4a..126e868 100644 --- a/lib/libipsec/pfkey_dump.c +++ b/lib/libipsec/pfkey_dump.c @@ -81,9 +81,9 @@ __FBSDID("$FreeBSD$"); do { \ if (sizeof((str)[0]) == 0 \ || num >= sizeof(str)/sizeof((str)[0])) \ - printf("%d ", (num)); \ + printf("%u ", (num)); \ else if (strlen((str)[(num)]) == 0) \ - printf("%d ", (num)); \ + printf("%u ", (num)); \ else \ printf("%s ", (str)[(num)]); \ } while (0) @@ -98,7 +98,7 @@ do { \ if (p && p->str) \ printf("%s ", p->str); \ else \ - printf("%d ", (num)); \ + printf("%u ", (num)); \ } while (0) static char *str_ipaddr(struct sockaddr *); |