summaryrefslogtreecommitdiff
path: root/usr.sbin/bgpd
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2010-10-24 17:19:36 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2010-10-24 17:19:36 +0000
commit49c370a7f3b60d76fd733448c7541b00130670e5 (patch)
tree3b523b1849f1320080a48c2b656bf056d425d2c0 /usr.sbin/bgpd
parent93e83526f3585ad8b03ee4dfc5e46095fa9ab2c9 (diff)
the subtype should be printed unsigned; ok claudio
Diffstat (limited to 'usr.sbin/bgpd')
-rw-r--r--usr.sbin/bgpd/util.c4
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);
}
}