Pārlūkot izejas kodu

poll takes unsigned int

The poll shim should take an unsigned int as the posix function does
for the number of file descriptors.
Matt Clarkson 10 gadi atpakaļ
vecāks
revīzija
d3e3a9c723
1 mainītis faili ar 3 papildinājumiem un 2 dzēšanām
  1. 3 2
      src/civetweb.c

+ 3 - 2
src/civetweb.c

@@ -2479,11 +2479,12 @@ static struct dirent *readdir(DIR *dir)
 }
 
 #ifndef HAVE_POLL
-static int poll(struct pollfd *pfd, int n, int milliseconds)
+static int poll(struct pollfd *pfd, unsigned int n, int milliseconds)
 {
 	struct timeval tv;
 	fd_set set;
-	int i, result;
+	unsigned int i;
+  int result;
 	SOCKET maxfd = 0;
 
 	tv.tv_sec = milliseconds / 1000;