You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@httpd.apache.org by Alexei Kosut <ak...@nueva.pvt.k12.ca.us> on 1996/06/13 21:15:33 UTC
HP-UX warning
As in http_main.c until we fixed it, I get the following on HP-UX
9.04:
gcc -c -O2 -Wall -DNO_MMAP -DSTATUS -DHPUX mod_proxy.c
mod_proxy.c: In function `connect_handler':
mod_proxy.c:2694: warning: passing arg 2 of `select' from incompatible
pointer type
Patch follows. Thoughts, anyone?
Index: mod_proxy.c
===================================================================
RCS file: /export/home/cvs/apache/src/mod_proxy.c,v
retrieving revision 1.26
diff -c -r1.26 mod_proxy.c
*** mod_proxy.c 1996/06/11 15:42:57 1.26
--- mod_proxy.c 1996/06/13 19:13:25
***************
*** 2691,2697 ****
--- 2691,2701 ----
Explain0("Going to sleep (select)");
i = select((r->connection->client->fd > sock ?
r->connection->client->fd+1 :
+ #ifdef HPUX
+ sock+1), (int*)&fds, NULL, NULL, NULL);
+ #else
sock+1), &fds, NULL, NULL, NULL);
+ #endif
Explain1("Woke from select(), i=%d",i);
if (i)
--
________________________________________________________________________
Alexei Kosut <ak...@nueva.pvt.k12.ca.us> The Apache HTTP Server
URL: http://www.nueva.pvt.k12.ca.us/~akosut/ http://www.apache.org/