svn commit: samba r22533 - in branches/SAMBA_3_0/source/smbd: .

vlendec at samba.org vlendec at samba.org
Fri Apr 27 14:00:28 GMT 2007


Author: vlendec
Date: 2007-04-27 14:00:27 +0000 (Fri, 27 Apr 2007)
New Revision: 22533

WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=22533

Log:
Use lib functions where we have them

Modified:
   branches/SAMBA_3_0/source/smbd/server.c


Changeset:
Modified: branches/SAMBA_3_0/source/smbd/server.c
===================================================================
--- branches/SAMBA_3_0/source/smbd/server.c	2007-04-27 13:12:44 UTC (rev 22532)
+++ branches/SAMBA_3_0/source/smbd/server.c	2007-04-27 14:00:27 UTC (rev 22533)
@@ -309,7 +309,7 @@
 	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 @@
 		       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) {



More information about the samba-cvs mailing list