diff options
author | Tiago Cunha <tcunha@gmx.com> | 2009-09-15 23:59:40 +0000 |
---|---|---|
committer | Tiago Cunha <tcunha@gmx.com> | 2009-09-15 23:59:40 +0000 |
commit | 150fba5ecdb3fedd8aed71ee65fb8cc6b0354070 (patch) | |
tree | 6add6c56f5524aed360ecd33050ebcf427a34bfa /compat/imsg.h | |
parent | c507bf25decf7366ea31e1af16ade117a8d2398a (diff) | |
download | rtmux-150fba5ecdb3fedd8aed71ee65fb8cc6b0354070.tar.gz rtmux-150fba5ecdb3fedd8aed71ee65fb8cc6b0354070.tar.bz2 rtmux-150fba5ecdb3fedd8aed71ee65fb8cc6b0354070.zip |
Sync OpenBSD patchset 329:
Enclose repeated buffer draining code in a new msgbuf_drain()
function, which is additionally exported for use by others.
From nicm@, who reminded me that tmux is now using buffer.c, too.
Diffstat (limited to 'compat/imsg.h')
-rw-r--r-- | compat/imsg.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/compat/imsg.h b/compat/imsg.h index 2ec9937a..6ff4901c 100644 --- a/compat/imsg.h +++ b/compat/imsg.h @@ -1,5 +1,5 @@ -/* $Id: imsg.h,v 1.3 2009-08-20 12:54:08 nicm Exp $ */ -/* $OpenBSD: imsg.h,v 1.1 2009/08/11 17:18:35 nicm Exp $ */ +/* $Id: imsg.h,v 1.4 2009-09-15 23:59:40 tcunha Exp $ */ +/* $OpenBSD: imsg.h,v 1.2 2009/09/15 18:12:51 jacekm Exp $ */ /* * Copyright (c) 2006, 2007 Pierre-Yves Ritschard <pyr@openbsd.org> @@ -91,6 +91,7 @@ void buf_free(struct buf *); void msgbuf_init(struct msgbuf *); void msgbuf_clear(struct msgbuf *); int msgbuf_write(struct msgbuf *); +void msgbuf_drain(struct msgbuf *, size_t); /* imsg.c */ void imsg_init(struct imsgbuf *, int); |