diff options
author | Nicholas Marriott <nicholas.marriott@gmail.com> | 2018-04-23 15:39:53 +0100 |
---|---|---|
committer | Nicholas Marriott <nicholas.marriott@gmail.com> | 2018-04-23 15:40:15 +0100 |
commit | aebb17dc75f60edc1817d670f978b71d8f327228 (patch) | |
tree | 735e060afaae0fec204f078aed53202d49db70f6 /compat/imsg-buffer.c | |
parent | c48440fd40992bab1ead8ec5aeadba5ba073359e (diff) | |
download | rtmux-aebb17dc75f60edc1817d670f978b71d8f327228.tar.gz rtmux-aebb17dc75f60edc1817d670f978b71d8f327228.tar.bz2 rtmux-aebb17dc75f60edc1817d670f978b71d8f327228.zip |
Sync imsg from OpenBSD.
Diffstat (limited to 'compat/imsg-buffer.c')
-rw-r--r-- | compat/imsg-buffer.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/compat/imsg-buffer.c b/compat/imsg-buffer.c index a302fa27..814591f4 100644 --- a/compat/imsg-buffer.c +++ b/compat/imsg-buffer.c @@ -1,4 +1,4 @@ -/* $OpenBSD: imsg-buffer.c,v 1.10 2017/04/11 09:57:19 reyk Exp $ */ +/* $OpenBSD: imsg-buffer.c,v 1.11 2017/12/14 09:27:44 kettenis Exp $ */ /* * Copyright (c) 2003, 2004 Henning Brauer <henning@openbsd.org> @@ -29,9 +29,9 @@ #include "compat.h" #include "imsg.h" -int ibuf_realloc(struct ibuf *, size_t); -void ibuf_enqueue(struct msgbuf *, struct ibuf *); -void ibuf_dequeue(struct msgbuf *, struct ibuf *); +static int ibuf_realloc(struct ibuf *, size_t); +static void ibuf_enqueue(struct msgbuf *, struct ibuf *); +static void ibuf_dequeue(struct msgbuf *, struct ibuf *); struct ibuf * ibuf_open(size_t len) @@ -67,7 +67,7 @@ ibuf_dynamic(size_t len, size_t max) return (buf); } -int +static int ibuf_realloc(struct ibuf *buf, size_t len) { u_char *b; @@ -289,14 +289,14 @@ again: return (1); } -void +static void ibuf_enqueue(struct msgbuf *msgbuf, struct ibuf *buf) { TAILQ_INSERT_TAIL(&msgbuf->bufs, buf, entry); msgbuf->queued++; } -void +static void ibuf_dequeue(struct msgbuf *msgbuf, struct ibuf *buf) { TAILQ_REMOVE(&msgbuf->bufs, buf, entry); |