summaryrefslogtreecommitdiff
path: root/usr.sbin/ntpd/ntpd.h
diff options
context:
space:
mode:
authorHenning Brauer <henning@cvs.openbsd.org>2004-09-15 19:21:26 +0000
committerHenning Brauer <henning@cvs.openbsd.org>2004-09-15 19:21:26 +0000
commit078fd8953f1ccce51c0026d3be83e90002feeb5c (patch)
tree6b611c60bb46d4bd21902e3ebd7ccce87d0486b8 /usr.sbin/ntpd/ntpd.h
parentcd4ff5e43c31c11a0c2f117b61c9560e773ac5d1 (diff)
imsg framework cleanup:
-kill the _pid flavors of imsg_create and imsg_compose, and just add pid as argument to those -use imsg_create in imsg_compose instead of duplicating code -check for datalen overflow
Diffstat (limited to 'usr.sbin/ntpd/ntpd.h')
-rw-r--r--usr.sbin/ntpd/ntpd.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/usr.sbin/ntpd/ntpd.h b/usr.sbin/ntpd/ntpd.h
index a7192506c32..1d0c1577807 100644
--- a/usr.sbin/ntpd/ntpd.h
+++ b/usr.sbin/ntpd/ntpd.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: ntpd.h,v 1.34 2004/09/15 00:18:12 henning Exp $ */
+/* $OpenBSD: ntpd.h,v 1.35 2004/09/15 19:21:25 henning Exp $ */
/*
* Copyright (c) 2003, 2004 Henning Brauer <henning@openbsd.org>
@@ -191,10 +191,10 @@ 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, void *, u_int16_t);
-int imsg_compose_pid(struct imsgbuf *, int, pid_t, void *, u_int16_t);
-struct buf *imsg_create(struct imsgbuf *, int, u_int32_t, u_int16_t);
-struct buf *imsg_create_pid(struct imsgbuf *, int, pid_t, u_int16_t);
+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,
+ u_int16_t);
int imsg_add(struct buf *, void *, u_int16_t);
int imsg_close(struct imsgbuf *, struct buf *);
void imsg_free(struct imsg *);