diff options
author | 2010-10-24 17:19:35 +0000 | |
---|---|---|
committer | 2010-10-24 17:19:35 +0000 | |
commit | d6340f7aefcada3d8e78ca5cfa837d86a654ad03 (patch) | |
tree | ab0da65d1bf057f2cffa0d49fb90daef3fe13e7c | |
parent | use newer system for more efficient redirection, and chdir the way man(1) (diff) | |
download | wireguard-openbsd-d6340f7aefcada3d8e78ca5cfa837d86a654ad03.tar.xz wireguard-openbsd-d6340f7aefcada3d8e78ca5cfa837d86a654ad03.zip |
the subtype should be printed unsigned; ok claudio
-rw-r--r-- | usr.sbin/bgpd/util.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/bgpd/util.c b/usr.sbin/bgpd/util.c index f700774408f..b4138711824 100644 --- a/usr.sbin/bgpd/util.c +++ b/usr.sbin/bgpd/util.c @@ -1,4 +1,4 @@ -/* $OpenBSD: util.c,v 1.11 2010/03/29 09:04:43 claudio Exp $ */ +/* $OpenBSD: util.c,v 1.12 2010/10/24 17:19:35 deraadt Exp $ */ /* * Copyright (c) 2006 Claudio Jeker <claudio@openbsd.org> @@ -156,7 +156,7 @@ log_ext_subtype(u_int8_t subtype) case EXT_COMMUNITY_BGP_COLLECT: return ("bdc"); /* bgp data collection */ default: - snprintf(etype, sizeof(etype), "[%i]", (int)subtype); + snprintf(etype, sizeof(etype), "[%u]", subtype); return (etype); } } |