summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVolker Lendecke <vlendec@samba.org>2007-04-27 14:00:27 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 12:19:43 -0500
commit322ca3b9336bebdcc4337004a312ced9349269e8 (patch)
tree83a15a3e45201d0757e9f496a43a4862960cd88d
parent59ac1167a64d16725dbd66779ffbacb377dd0712 (diff)
downloadsamba-322ca3b9336bebdcc4337004a312ced9349269e8.tar.gz
samba-322ca3b9336bebdcc4337004a312ced9349269e8.tar.bz2
samba-322ca3b9336bebdcc4337004a312ced9349269e8.zip
r22533: Use lib functions where we have them
(This used to be commit dc18ab2f3407234dc545d5133660f9f04e8e5b55)
-rw-r--r--source3/smbd/server.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/source3/smbd/server.c b/source3/smbd/server.c
index ee5d219b97..3422290a90 100644
--- a/source3/smbd/server.c
+++ b/source3/smbd/server.c
@@ -309,7 +309,7 @@ static BOOL open_sockets_smbd(enum smb_server_mode server_mode, const char *smb_
int s;
int maxfd = 0;
int i;
- struct timeval idle_timeout = {0, 0};
+ struct timeval idle_timeout = timeval_zero();
if (server_mode == SERVER_MODE_INETD) {
return open_sockets_inetd();
@@ -383,7 +383,8 @@ static BOOL open_sockets_smbd(enum smb_server_mode server_mode, const char *smb_
sizeof(listen_set));
num = sys_select(maxfd+1,&lfds,NULL,NULL,
- idle_timeout.tv_sec ? &idle_timeout : NULL);
+ timeval_is_zero(&idle_timeout) ?
+ NULL : &idle_timeout);
if (num == -1 && errno == EINTR) {
if (got_sig_term) {