summaryrefslogtreecommitdiff
path: root/usr.sbin/snmpd/smi.c
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2009-12-16 22:17:54 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2009-12-16 22:17:54 +0000
commit95dd24649315dd92cf938e4e234b3aff16b85eaa (patch)
tree7979082c18db907a2f99457e52560a4c56779003 /usr.sbin/snmpd/smi.c
parentb75821a3d434ed4b7e566053a35764e314adf6ef (diff)
knf and unused variables
Diffstat (limited to 'usr.sbin/snmpd/smi.c')
-rw-r--r--usr.sbin/snmpd/smi.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/usr.sbin/snmpd/smi.c b/usr.sbin/snmpd/smi.c
index d164d582883..acabd57d365 100644
--- a/usr.sbin/snmpd/smi.c
+++ b/usr.sbin/snmpd/smi.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: smi.c,v 1.5 2008/01/16 09:51:15 reyk Exp $ */
+/* $OpenBSD: smi.c,v 1.6 2009/12/16 22:17:53 deraadt Exp $ */
/*
* Copyright (c) 2007, 2008 Reyk Floeter <reyk@vantronix.net>
@@ -73,7 +73,9 @@ void
smi_oidlen(struct ber_oid *o)
{
size_t i;
- for (i = 0; i < BER_MAX_OID_LEN && o->bo_id[i] != 0; i++);
+
+ for (i = 0; i < BER_MAX_OID_LEN && o->bo_id[i] != 0; i++)
+ ;
o->bo_n = i;
}