Hi guys, I've just downloaded flood from CVS and when building I got this error:
flood_net.c: In function `open_socket':
flood_net.c:49: warning: passing arg 4 of `apr_socket_create' makes pointer
from integer without a cast
flood_net.c:49: error: too many arguments to function `apr_socket_create'
My configure was:
./configure --disable-shared --enable-ssl --with-capath=/etc/ssl/certs/
--with-apr=/usr/bin/apr-config --with-apr-util=/usr/bin/apu-config
I'm not sure if it's due to a bug in the code or it's due to my apr library,
but changing this line fixes it for me:
RCS file: /home/cvspublic/httpd-test/flood/flood_net.c,v
retrieving revision 1.18
diff -u -r1.18 flood_net.c
--- flood_net.c 3 Aug 2004 10:22:14 -0000 1.18
+++ flood_net.c 14 Nov 2004 12:47:59 -0000
@@ -46,7 +46,7 @@
}
if ((rv = apr_socket_create(&fs->socket, APR_INET, SOCK_STREAM,
- APR_PROTO_TCP, pool)) != APR_SUCCESS) {
+ pool)) != APR_SUCCESS) {
if (status) {
*status = rv;
}
P.S: Please CC me, since I'm not in the list.
Regards,
Alberto
--
/* Alberto Garc�a Hierro (Skyhusker) */
pgprtofPPFiBG.pgp
Description: PGP signature
