Browse Source

the "type" param to imsg_compose and imsg_create is really an

enum imsg_type and not an int
OPENBSD_3_7
henning 20 years ago
parent
commit
1952adadc6
2 changed files with 8 additions and 8 deletions
  1. +4
    -4
      src/usr.sbin/ntpd/imsg.c
  2. +4
    -4
      src/usr.sbin/ntpd/ntpd.h

+ 4
- 4
src/usr.sbin/ntpd/imsg.c View File

@ -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;


+ 4
- 4
src/usr.sbin/ntpd/ntpd.h View File

@ -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 *);


Loading…
Cancel
Save