diff options
author | Andrew Bartlett <abartlet@samba.org> | 2012-02-09 12:57:21 +1100 |
---|---|---|
committer | Andrew Bartlett <abartlet@samba.org> | 2012-02-17 12:19:30 +0100 |
commit | 245d47f233fcc53aa93503cd876aaf487d89d6e7 (patch) | |
tree | 268150fbb0e9324125b904587d9aa05a4674ab9a /source3/lib | |
parent | 057b87d0bd4dec88f414dd0dffd0c3481d26faa4 (diff) | |
download | samba-245d47f233fcc53aa93503cd876aaf487d89d6e7.tar.gz samba-245d47f233fcc53aa93503cd876aaf487d89d6e7.tar.bz2 samba-245d47f233fcc53aa93503cd876aaf487d89d6e7.zip |
lib/util: Remove unused sys_recv()
Found by callcatcher.
Andrew Bartlett
Diffstat (limited to 'source3/lib')
-rw-r--r-- | source3/lib/system.c | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/source3/lib/system.c b/source3/lib/system.c index c24422f3a2..9118d4ea74 100644 --- a/source3/lib/system.c +++ b/source3/lib/system.c @@ -227,24 +227,6 @@ ssize_t sys_sendto(int s, const void *msg, size_t len, int flags, const struct } /******************************************************************* -A recv wrapper that will deal with EINTR or EAGAIN or EWOULDBLOCK. -********************************************************************/ - -ssize_t sys_recv(int fd, void *buf, size_t count, int flags) -{ - ssize_t ret; - - do { - ret = recv(fd, buf, count, flags); -#if defined(EWOULDBLOCK) - } while (ret == -1 && (errno == EINTR || errno == EAGAIN || errno == EWOULDBLOCK)); -#else - } while (ret == -1 && (errno == EINTR || errno == EAGAIN)); -#endif - return ret; -} - -/******************************************************************* A recvfrom wrapper that will deal with EINTR. ********************************************************************/ |