diff options
author | Lennart Poettering <lennart@poettering.net> | 2005-11-20 00:45:03 +0000 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2005-11-20 00:45:03 +0000 |
commit | ef97e32ba2ed98b791af4504103b5f0378bb6b9b (patch) | |
tree | 35d898a850784e7f5d8c029bbb9b6d461f69b130 /src/util.c | |
parent | 67ff22450f3fc7a9b933cc0e465d7f5083e2b47f (diff) |
* bump version number
* make nss-mdns shut up
* deal with OOM
* other cleanups
git-svn-id: file:///home/lennart/svn/public/nss-mdns/trunk@87 0ee8848e-81ea-0310-a63a-f631d1a40d77
Diffstat (limited to 'src/util.c')
-rw-r--r-- | src/util.c | 9 |
1 files changed, 2 insertions, 7 deletions
@@ -26,7 +26,6 @@ #include <sys/select.h> #include <errno.h> #include <string.h> -#include <stdio.h> #include <assert.h> #include <fcntl.h> @@ -152,10 +151,8 @@ int wait_for_write(int fd, struct timeval *end) { } if ((r = select(fd+1, NULL, &fds, NULL, end ? &tv : NULL)) < 0) { - if (errno != EINTR) { - fprintf(stderr, "select() failed: %s\n", strerror(errno)); + if (errno != EINTR) return -1; - } } else if (r == 0) return 1; else { @@ -191,10 +188,8 @@ int wait_for_read(int fd, struct timeval *end) { } if ((r = select(fd+1, &fds, NULL, NULL, end ? &tv : NULL)) < 0) { - if (errno != EINTR) { - fprintf(stderr, "select() failed: %s\n", strerror(errno)); + if (errno != EINTR) return -1; - } } else if (r == 0) return 1; else { |