diff options
author | Martijn van Duren <martijn@cvs.openbsd.org> | 2020-09-06 17:29:36 +0000 |
---|---|---|
committer | Martijn van Duren <martijn@cvs.openbsd.org> | 2020-09-06 17:29:36 +0000 |
commit | 511bde83b2a434e86bf8662fdc310842838db142 (patch) | |
tree | 89dbaa3e027049fcb5025d90a21c97a051011665 | |
parent | c67a44d1bbc20b527d85239eea8fb7aa3ed8203c (diff) |
Remove snmpe_dispatch_parent.
It's an empty stub and proc.c will put implement proc_dispatch_null if not
set, which does the exact same thing.
OK denis@
-rw-r--r-- | usr.sbin/snmpd/snmpe.c | 16 |
1 files changed, 2 insertions, 14 deletions
diff --git a/usr.sbin/snmpd/snmpe.c b/usr.sbin/snmpd/snmpe.c index fb92cd1b719..dd5ebd38261 100644 --- a/usr.sbin/snmpd/snmpe.c +++ b/usr.sbin/snmpd/snmpe.c @@ -1,4 +1,4 @@ -/* $OpenBSD: snmpe.c,v 1.66 2020/09/06 15:51:28 martijn Exp $ */ +/* $OpenBSD: snmpe.c,v 1.67 2020/09/06 17:29:35 martijn Exp $ */ /* * Copyright (c) 2007, 2008, 2012 Reyk Floeter <reyk@openbsd.org> @@ -46,7 +46,6 @@ void snmpe_tryparse(int, struct snmp_message *); int snmpe_parsevarbinds(struct snmp_message *); void snmpe_response(struct snmp_message *); void snmpe_sig_handler(int sig, short, void *); -int snmpe_dispatch_parent(int, struct privsep_proc *, struct imsg *); int snmpe_bind(struct address *); void snmpe_recvmsg(int fd, short, void *); void snmpe_readcb(int fd, short, void *); @@ -60,7 +59,7 @@ struct imsgev *iev_parent; static const struct timeval snmpe_tcp_timeout = { 10, 0 }; /* 10s */ static struct privsep_proc procs[] = { - { "parent", PROC_PARENT, snmpe_dispatch_parent } + { "parent", PROC_PARENT } }; void @@ -136,17 +135,6 @@ snmpe_shutdown(void) } int -snmpe_dispatch_parent(int fd, struct privsep_proc *p, struct imsg *imsg) -{ - switch (imsg->hdr.type) { - default: - break; - } - - return (-1); -} - -int snmpe_bind(struct address *addr) { char buf[512]; |