summaryrefslogtreecommitdiff
path: root/usr.sbin/ypldap/ypldap.h
diff options
context:
space:
mode:
authorPierre-Yves Ritschard <pyr@cvs.openbsd.org>2008-07-02 17:36:16 +0000
committerPierre-Yves Ritschard <pyr@cvs.openbsd.org>2008-07-02 17:36:16 +0000
commit3bca07f41f059e90fe9b325296d3578b93276650 (patch)
tree90441bc69a398b8442719d0ec845a15632321ea1 /usr.sbin/ypldap/ypldap.h
parentd034dde8db4cec62e959d1b5800dbf696d646924 (diff)
kill a bunch of dead code.
Diffstat (limited to 'usr.sbin/ypldap/ypldap.h')
-rw-r--r--usr.sbin/ypldap/ypldap.h30
1 files changed, 2 insertions, 28 deletions
diff --git a/usr.sbin/ypldap/ypldap.h b/usr.sbin/ypldap/ypldap.h
index 33c9b88ed2e..d31ee4f6872 100644
--- a/usr.sbin/ypldap/ypldap.h
+++ b/usr.sbin/ypldap/ypldap.h
@@ -65,18 +65,9 @@ struct imsgbuf {
};
enum imsg_type {
- IMSG_NONE = 0,
- IMSG_GETPWENT = 1, /* sends nothing expects nothing */
- IMSG_SETPWENT = 2, /* sends nothing expects nothing */
- IMSG_GETPWNAM = 3, /* sends a name expects a line */
- IMSG_GETPWID = 4, /* sends a uid_t expects a line */
- IMSG_GETGRENT = 5, /* sends nothing expects nothing */
- IMSG_SETGRENT = 6, /* sends nothing expects nothing */
- IMSG_GETGRNAM = 7, /* sends a name expects a line */
- IMSG_GETGRID = 8, /* sends a uid_t expects a line */
+ IMSG_NONE,
IMSG_CONF_START,
IMSG_CONF_IDM,
- IMSG_CONF_SERVER,
IMSG_CONF_END,
IMSG_START_UPDATE,
IMSG_END_UPDATE,
@@ -97,21 +88,10 @@ struct imsg {
void *data;
};
-enum blockmodes {
- BM_NORMAL,
- BM_NONBLOCK,
-};
-
enum {
PROC_MAIN,
PROC_CLIENT
-} lb_process;
-
-union req {
- uid_t uid;
- gid_t gid;
- char nam[_PW_NAME_LEN+1];
-};
+} ypldap_process;
struct userent {
RB_ENTRY(userent) ue_name_node;
@@ -227,12 +207,6 @@ ssize_t imsg_read(struct imsgbuf *);
ssize_t imsg_get(struct imsgbuf *, struct imsg *);
int imsg_compose(struct imsgbuf *, enum imsg_type, u_int32_t, pid_t,
void *, u_int16_t);
-#if 0
-int imsg_get_fd(struct imsgbuf *);
-int imsg_composev(struct imsgbuf *, enum imsg_type, u_int32_t,
- pid_t, const struct iovec *, int);
-int imsg_flush(struct imsgbuf *);
-#endif
struct buf *imsg_create(struct imsgbuf *, enum imsg_type, u_int32_t, pid_t,
u_int16_t);
int imsg_add(struct buf *, void *, u_int16_t);