summaryrefslogtreecommitdiffstats
path: root/src/util.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2005-11-20 00:45:03 +0000
committerLennart Poettering <lennart@poettering.net>2005-11-20 00:45:03 +0000
commitef97e32ba2ed98b791af4504103b5f0378bb6b9b (patch)
tree35d898a850784e7f5d8c029bbb9b6d461f69b130 /src/util.c
parent67ff22450f3fc7a9b933cc0e465d7f5083e2b47f (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.c9
1 files changed, 2 insertions, 7 deletions
diff --git a/src/util.c b/src/util.c
index b6b2d57..bf37711 100644
--- a/src/util.c
+++ b/src/util.c
@@ -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 {