-/* $OpenBSD: dvmrpd.c,v 1.15 2013/11/26 11:32:30 henning Exp $ */
+/* $OpenBSD: dvmrpd.c,v 1.16 2014/07/12 19:22:32 krw Exp $ */
/*
* Copyright (c) 2005 Claudio Jeker <claudio@openbsd.org>
fatalx("pipe closed");
}
if (event & EV_WRITE) {
- if (msgbuf_write(&ibuf->w) == -1 && errno != EAGAIN)
+ if (msgbuf_write(&ibuf->w) <= 0 && errno != EAGAIN)
fatal("msgbuf_write");
}
fatalx("pipe closed");
}
if (event & EV_WRITE) {
- if (msgbuf_write(&ibuf->w) == -1 && errno != EAGAIN)
+ if (msgbuf_write(&ibuf->w) <= 0 && errno != EAGAIN)
fatal("msgbuf_write");
}
-/* $OpenBSD: dvmrpe.c,v 1.11 2013/11/26 11:32:31 henning Exp $ */
+/* $OpenBSD: dvmrpe.c,v 1.12 2014/07/12 19:22:32 krw Exp $ */
/*
* Copyright (c) 2005 Claudio Jeker <claudio@openbsd.org>
fatalx("pipe closed");
}
if (event & EV_WRITE) {
- if (msgbuf_write(&ibuf->w) == -1 && errno != EAGAIN)
+ if (msgbuf_write(&ibuf->w) <= 0 && errno != EAGAIN)
fatal("msgbuf_write");
}
fatalx("pipe closed");
}
if (event & EV_WRITE) {
- if (msgbuf_write(&ibuf->w) == -1 && errno != EAGAIN)
+ if (msgbuf_write(&ibuf->w) <= 0 && errno != EAGAIN)
fatal("msgbuf_write");
}
-/* $OpenBSD: rde.c,v 1.23 2013/11/26 11:32:31 henning Exp $ */
+/* $OpenBSD: rde.c,v 1.24 2014/07/12 19:22:32 krw Exp $ */
/*
* Copyright (c) 2004, 2005 Claudio Jeker <claudio@openbsd.org>
fatalx("pipe closed");
}
if (event & EV_WRITE) {
- if (msgbuf_write(&ibuf->w) == -1 && errno != EAGAIN)
+ if (msgbuf_write(&ibuf->w) <= 0 && errno != EAGAIN)
fatal("msgbuf_write");
}
-/* $OpenBSD: packet.c,v 1.34 2013/11/26 11:59:38 henning Exp $ */
+/* $OpenBSD: packet.c,v 1.35 2014/07/12 19:22:32 krw Exp $ */
/*
* Copyright (c) 2009 Michele Marchetto <michele@openbsd.org>
struct nbr *nbr = tcp->nbr;
if (event & EV_WRITE) {
- if (msgbuf_write(&tcp->wbuf.wbuf) == -1 && errno != EAGAIN) {
+ if (msgbuf_write(&tcp->wbuf.wbuf) <= 0 && errno != EAGAIN) {
if (nbr)
nbr_fsm(nbr, NBR_EVT_CLOSE_SESSION);
}