From: martijn Date: Sun, 12 Nov 2023 19:59:56 +0000 (+0000) Subject: Printing all known objects inside smi when build with -DDEBUG has no X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=79bd203b0c1524ed971b709ed1188d16ac51dc15;p=openbsd Printing all known objects inside smi when build with -DDEBUG has no benefit. Remove it and the last consumer of smi_foreach(). OK tb@ --- diff --git a/usr.sbin/snmpd/snmpe.c b/usr.sbin/snmpd/snmpe.c index 42eabc46cfa..da12181df12 100644 --- a/usr.sbin/snmpd/snmpe.c +++ b/usr.sbin/snmpd/snmpe.c @@ -1,4 +1,4 @@ -/* $OpenBSD: snmpe.c,v 1.90 2023/11/08 20:07:14 martijn Exp $ */ +/* $OpenBSD: snmpe.c,v 1.91 2023/11/12 19:59:56 martijn Exp $ */ /* * Copyright (c) 2007, 2008, 2012 Reyk Floeter @@ -71,21 +71,10 @@ snmpe(struct privsep *ps, struct privsep_proc *p) { struct snmpd *env = ps->ps_env; struct address *h; -#ifdef DEBUG - char buf[BUFSIZ]; - struct oid *oid; -#endif if ((setlocale(LC_CTYPE, "en_US.UTF-8")) == NULL) fatal("setlocale(LC_CTYPE, \"en_US.UTF-8\")"); -#ifdef DEBUG - for (oid = NULL; (oid = smi_foreach(oid, 0)) != NULL;) { - smi_oid2string(&oid->o_id, buf, sizeof(buf), 0); - log_debug("oid %s", buf); - } -#endif - appl(); /* bind SNMP UDP/TCP sockets */