Remoev reverse abstraction
authorRémi Denis-Courmont <rem@videolan.org>
Sun, 20 Jan 2008 09:51:41 +0000 (09:51 +0000)
committerRémi Denis-Courmont <rem@videolan.org>
Sun, 20 Jan 2008 09:51:41 +0000 (09:51 +0000)
src/network/httpd.c

index f710612..5504b3b 100644 (file)
@@ -2516,9 +2516,8 @@ static void httpd_HostThread( httpd_host_t *host )
                 continue;
 
             /* */
-            int kludge[] = { ufd[nfd].fd, -1 };
-            int fd = net_Accept( host, kludge, 0 );
-            if( fd < 0 )
+            int fd = accept (ufd[nfd].fd, NULL, NULL);
+            if (fd == -1)
                 continue;
 
             if( p_tls != NULL )