summaryrefslogtreecommitdiff
path: root/usr.sbin/snmpd/snmpd.h
diff options
context:
space:
mode:
authorReyk Floeter <reyk@cvs.openbsd.org>2015-11-23 19:31:53 +0000
committerReyk Floeter <reyk@cvs.openbsd.org>2015-11-23 19:31:53 +0000
commit6b23c385d669e0c4148cac1ffd266fbba7c5b19f (patch)
tree1557d4dec8c0c7586ee06c146a0f09043ac6c5cf /usr.sbin/snmpd/snmpd.h
parent2bfadaff0e5648be7030c20df9542a615ec8496a (diff)
Use SOCK_NONBLOCK to replace socket_set_blockmode() and fcntl(..O_NONBLOCK).
(SOCK_CLOEXEC should also be added where it is appropriate, but this is OBnot done in this commit yet.) OK claudio@
Diffstat (limited to 'usr.sbin/snmpd/snmpd.h')
-rw-r--r--usr.sbin/snmpd/snmpd.h9
1 files changed, 1 insertions, 8 deletions
diff --git a/usr.sbin/snmpd/snmpd.h b/usr.sbin/snmpd/snmpd.h
index d98905ea2cf..77c580569d3 100644
--- a/usr.sbin/snmpd/snmpd.h
+++ b/usr.sbin/snmpd/snmpd.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: snmpd.h,v 1.64 2015/11/22 13:27:13 reyk Exp $ */
+/* $OpenBSD: snmpd.h,v 1.65 2015/11/23 19:31:52 reyk Exp $ */
/*
* Copyright (c) 2007, 2008, 2012 Reyk Floeter <reyk@openbsd.org>
@@ -173,11 +173,6 @@ struct privsep_proc {
u_int p_instance;
};
-enum blockmodes {
- BM_NORMAL,
- BM_NONBLOCK
-};
-
/*
* kroute
*/
@@ -585,8 +580,6 @@ int control_init(struct privsep *, struct control_sock *);
int control_listen(struct control_sock *);
void control_cleanup(struct control_sock *);
-void socket_set_blockmode(int, enum blockmodes);
-
/* parse.y */
struct snmpd *parse_config(const char *, u_int);
int cmdline_symset(char *);