diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2013-11-14 20:48:53 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2013-11-14 20:48:53 +0000 |
commit | e2f3591ee5cbb13269e27b8b606197af4f74051a (patch) | |
tree | 994a5eeca2ffa9e5afce1b5156e0304e569068bd /usr.sbin/ripctl | |
parent | 38a71f576c3cd15854733df33366092017762dbe (diff) |
cope with the EAGAIN API change for msgbuf_write()
ok benno
Diffstat (limited to 'usr.sbin/ripctl')
-rw-r--r-- | usr.sbin/ripctl/ripctl.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/usr.sbin/ripctl/ripctl.c b/usr.sbin/ripctl/ripctl.c index 7ca78a5588f..dcca2131dc0 100644 --- a/usr.sbin/ripctl/ripctl.c +++ b/usr.sbin/ripctl/ripctl.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ripctl.c,v 1.11 2013/04/09 14:51:33 gilles Exp $ +/* $OpenBSD: ripctl.c,v 1.12 2013/11/14 20:48:52 deraadt Exp $ * * Copyright (c) 2006 Michele Marchetto <mydecay@openbeer.it> * Copyright (c) 2005 Claudio Jeker <claudio@openbsd.org> @@ -27,6 +27,7 @@ #include <net/if_types.h> #include <err.h> +#include <errno.h> #include <stdio.h> #include <stdlib.h> #include <string.h> @@ -167,7 +168,7 @@ main(int argc, char *argv[]) } while (ibuf->w.queued) - if (msgbuf_write(&ibuf->w) < 0) + if (msgbuf_write(&ibuf->w) <= 0 && errno != EAGAIN) err(1, "write error"); while (!done) { |