httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Alexei Kosut <ako...@nueva.pvt.k12.ca.us>
Subject HP-UX warning
Date Thu, 13 Jun 1996 19:15:33 GMT
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 <akosut@nueva.pvt.k12.ca.us>      The Apache HTTP Server
URL: http://www.nueva.pvt.k12.ca.us/~akosut/   http://www.apache.org/


Mime
View raw message