summaryrefslogtreecommitdiff
path: root/usr.sbin
diff options
context:
space:
mode:
authorEric Faurot <eric@cvs.openbsd.org>2009-06-03 20:20:10 +0000
committerEric Faurot <eric@cvs.openbsd.org>2009-06-03 20:20:10 +0000
commitd16494e671a562d11f65fe2295b4a32f3b3b0642 (patch)
treeac9f7a6f7954c8ed621be2611c8ec5dc8989b2fa /usr.sbin
parent2c12ceb51f0559dc43be19c78ec2096cdde262cf (diff)
cleanup contorted and slightly broken call to imsg_get_fd
ok pyr@
Diffstat (limited to 'usr.sbin')
-rw-r--r--usr.sbin/relayd/snmp.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/usr.sbin/relayd/snmp.c b/usr.sbin/relayd/snmp.c
index befc8bc225b..2e92955a7f9 100644
--- a/usr.sbin/relayd/snmp.c
+++ b/usr.sbin/relayd/snmp.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: snmp.c,v 1.2 2008/05/05 15:07:12 henning Exp $ */
+/* $OpenBSD: snmp.c,v 1.3 2009/06/03 20:20:09 eric Exp $ */
/*
* Copyright (c) 2008 Reyk Floeter <reyk@openbsd.org>
@@ -130,8 +130,7 @@ snmp_getsock(struct imsgbuf *ibuf)
done = 1;
switch (imsg.hdr.type) {
case IMSG_SNMPSOCK:
- if ((s = imsg_get_fd(ibuf)) <= 0)
- s = -1;
+ s = imsg_get_fd(ibuf);
break;
default:
break;