diff options
author | 2004-09-16 17:58:13 +0000 | |
---|---|---|
committer | 2004-09-16 17:58:13 +0000 | |
commit | 2b185d3c181e67665bf69954d44a76e7f212e322 (patch) | |
tree | 6213d148925441218f5f49f83fd072f0be9cfc0e | |
parent | when a cloned peer goes back to IDLE state, don't remove him immediately (diff) | |
download | wireguard-openbsd-2b185d3c181e67665bf69954d44a76e7f212e322.tar.xz wireguard-openbsd-2b185d3c181e67665bf69954d44a76e7f212e322.zip |
imsg type is really an enum imsg_type and not an int
-rw-r--r-- | usr.sbin/bgpd/bgpd.h | 6 | ||||
-rw-r--r-- | usr.sbin/bgpd/imsg.c | 8 |
2 files changed, 7 insertions, 7 deletions
diff --git a/usr.sbin/bgpd/bgpd.h b/usr.sbin/bgpd/bgpd.h index 9a21378907e..231285bc476 100644 --- a/usr.sbin/bgpd/bgpd.h +++ b/usr.sbin/bgpd/bgpd.h @@ -1,4 +1,4 @@ -/* $OpenBSD: bgpd.h,v 1.142 2004/09/16 17:36:29 henning Exp $ */ +/* $OpenBSD: bgpd.h,v 1.143 2004/09/16 17:58:13 henning Exp $ */ /* * Copyright (c) 2003, 2004 Henning Brauer <henning@openbsd.org> @@ -595,9 +595,9 @@ int host(const char *, struct bgpd_addr *, u_int8_t *); void imsg_init(struct imsgbuf *, int); int imsg_read(struct imsgbuf *); int imsg_get(struct imsgbuf *, struct imsg *); -int imsg_compose(struct imsgbuf *, int, u_int32_t, pid_t, int, +int imsg_compose(struct imsgbuf *, enum imsg_type, u_int32_t, pid_t, int, void *, u_int16_t); -struct buf *imsg_create(struct imsgbuf *, int, u_int32_t, pid_t, +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); int imsg_close(struct imsgbuf *, struct buf *); diff --git a/usr.sbin/bgpd/imsg.c b/usr.sbin/bgpd/imsg.c index dd1eb7eb746..f172daf7a76 100644 --- a/usr.sbin/bgpd/imsg.c +++ b/usr.sbin/bgpd/imsg.c @@ -1,4 +1,4 @@ -/* $OpenBSD: imsg.c,v 1.31 2004/09/16 17:36:29 henning Exp $ */ +/* $OpenBSD: imsg.c,v 1.32 2004/09/16 17:58:13 henning Exp $ */ /* * Copyright (c) 2003, 2004 Henning Brauer <henning@openbsd.org> @@ -122,8 +122,8 @@ imsg_get(struct imsgbuf *ibuf, struct imsg *imsg) } int -imsg_compose(struct imsgbuf *ibuf, int type, u_int32_t peerid, pid_t pid, - int fd, void *data, u_int16_t datalen) +imsg_compose(struct imsgbuf *ibuf, enum imsg_type type, u_int32_t peerid, + pid_t pid, int fd, void *data, u_int16_t datalen) { struct buf *wbuf; int n; @@ -143,7 +143,7 @@ imsg_compose(struct imsgbuf *ibuf, int type, u_int32_t peerid, pid_t pid, } struct buf * -imsg_create(struct imsgbuf *ibuf, int type, u_int32_t peerid, +imsg_create(struct imsgbuf *ibuf, enum imsg_type type, u_int32_t peerid, pid_t pid, u_int16_t datalen) { struct buf *wbuf; |