diff options
author | Henning Brauer <henning@cvs.openbsd.org> | 2004-09-16 17:58:14 +0000 |
---|---|---|
committer | Henning Brauer <henning@cvs.openbsd.org> | 2004-09-16 17:58:14 +0000 |
commit | e77bb9ada09f611121a1f25212dba8df3db557b3 (patch) | |
tree | 2b2a467405820770bf9441bc5d87ed9d9932bf98 /usr.sbin/bgpd | |
parent | efa48c743d42e62992290a70cac6934c7ff421b1 (diff) |
imsg type is really an enum imsg_type and not an int
Diffstat (limited to 'usr.sbin/bgpd')
-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; |