|
@ -1,4 +1,4 @@ |
|
|
/* $OpenBSD: imsg.c,v 1.9 2005/03/09 14:07:00 henning Exp $ */ |
|
|
|
|
|
|
|
|
/* $OpenBSD: imsg.c,v 1.10 2005/03/23 10:42:04 henning Exp $ */ |
|
|
|
|
|
|
|
|
/* |
|
|
/* |
|
|
* Copyright (c) 2003, 2004 Henning Brauer <henning@openbsd.org> |
|
|
* Copyright (c) 2003, 2004 Henning Brauer <henning@openbsd.org> |
|
@ -57,8 +57,7 @@ imsg_read(struct imsgbuf *ibuf) |
|
|
int |
|
|
int |
|
|
imsg_get(struct imsgbuf *ibuf, struct imsg *imsg) |
|
|
imsg_get(struct imsgbuf *ibuf, struct imsg *imsg) |
|
|
{ |
|
|
{ |
|
|
ssize_t datalen = 0; |
|
|
|
|
|
size_t av, left; |
|
|
|
|
|
|
|
|
size_t av, left, datalen; |
|
|
|
|
|
|
|
|
av = ibuf->r.wpos; |
|
|
av = ibuf->r.wpos; |
|
|
|
|
|
|
|
|