diff options
author | Henning Brauer <henning@cvs.openbsd.org> | 2004-09-16 01:13:43 +0000 |
---|---|---|
committer | Henning Brauer <henning@cvs.openbsd.org> | 2004-09-16 01:13:43 +0000 |
commit | 0c4bae27e9069e7d0685cc9c4f8364fe2ed10ed1 (patch) | |
tree | e530da43f30cb7e608981c8cc2d2f3677cceb340 /usr.sbin/ntpd | |
parent | 966599e8469056afebfe392b5145ca9abde9ab92 (diff) |
the "type" param to imsg_compose and imsg_create is really an
enum imsg_type and not an int
Diffstat (limited to 'usr.sbin/ntpd')
-rw-r--r-- | usr.sbin/ntpd/imsg.c | 8 | ||||
-rw-r--r-- | usr.sbin/ntpd/ntpd.h | 8 |
2 files changed, 8 insertions, 8 deletions
diff --git a/usr.sbin/ntpd/imsg.c b/usr.sbin/ntpd/imsg.c index 73b1e273e93..373c1ce3bd0 100644 --- a/usr.sbin/ntpd/imsg.c +++ b/usr.sbin/ntpd/imsg.c @@ -1,4 +1,4 @@ -/* $OpenBSD: imsg.c,v 1.6 2004/09/16 01:10:05 henning Exp $ */ +/* $OpenBSD: imsg.c,v 1.7 2004/09/16 01:13:42 henning Exp $ */ /* * Copyright (c) 2003, 2004 Henning Brauer <henning@openbsd.org> @@ -92,8 +92,8 @@ imsg_get(struct imsgbuf *ibuf, struct imsg *imsg) } int -imsg_compose(struct imsgbuf *ibuf, int type, u_int32_t peerid, pid_t pid, - void *data, u_int16_t datalen) +imsg_compose(struct imsgbuf *ibuf, enum imsg_type type, u_int32_t peerid, + pid_t pid, void *data, u_int16_t datalen) { struct buf *wbuf; int n; @@ -111,7 +111,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; diff --git a/usr.sbin/ntpd/ntpd.h b/usr.sbin/ntpd/ntpd.h index 1d0c1577807..1c29af2f2ee 100644 --- a/usr.sbin/ntpd/ntpd.h +++ b/usr.sbin/ntpd/ntpd.h @@ -1,4 +1,4 @@ -/* $OpenBSD: ntpd.h,v 1.35 2004/09/15 19:21:25 henning Exp $ */ +/* $OpenBSD: ntpd.h,v 1.36 2004/09/16 01:13:42 henning Exp $ */ /* * Copyright (c) 2003, 2004 Henning Brauer <henning@openbsd.org> @@ -191,9 +191,9 @@ int msgbuf_write(struct msgbuf *); 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, void *, - u_int16_t); -struct buf *imsg_create(struct imsgbuf *, int, u_int32_t, pid_t, +int imsg_compose(struct imsgbuf *, enum imsg_type, u_int32_t, pid_t, + void *, u_int16_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 *); |