diff options
author | Martin Willi <martin@revosec.ch> | 2014-11-06 14:20:28 +0100 |
---|---|---|
committer | Martin Willi <martin@revosec.ch> | 2014-11-21 12:02:08 +0100 |
commit | 6e1d3f3615c48f5357fd339c57735aad0d03effa (patch) | |
tree | 3b0ec6140b445aea4bea8da5325cadf717730346 | |
parent | a301a9c939a9b6fcd9f0309b730e5fa1319124ea (diff) | |
download | strongswan-6e1d3f3615c48f5357fd339c57735aad0d03effa.tar.bz2 strongswan-6e1d3f3615c48f5357fd339c57735aad0d03effa.tar.xz |
watcher: Use Windows read/write(2) wrappers instead of compile-conditions
-rw-r--r-- | src/libstrongswan/processing/watcher.c | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/src/libstrongswan/processing/watcher.c b/src/libstrongswan/processing/watcher.c index 07c1b6dc9..9eaa3f142 100644 --- a/src/libstrongswan/processing/watcher.c +++ b/src/libstrongswan/processing/watcher.c @@ -118,11 +118,7 @@ static void update(private_watcher_t *this) this->pending = TRUE; if (this->notify[1] != -1) { -#ifdef WIN32 - if (send(this->notify[1], buf, sizeof(buf), 0) == -1) -#else if (write(this->notify[1], buf, sizeof(buf)) == -1) -#endif { DBG1(DBG_JOB, "notifying watcher failed: %s", strerror(errno)); } @@ -338,11 +334,7 @@ static job_requeue_t watch(private_watcher_t *this) { while (TRUE) { -#ifdef WIN32 - len = recv(this->notify[0], buf, sizeof(buf), 0); -#else len = read(this->notify[0], buf, sizeof(buf)); -#endif if (len == -1) { if (errno != EAGAIN && errno != EWOULDBLOCK) |