cvs: php4 /ext/sockets sockets.c

From: Date: Sun, 10 Sep 2000 23:18:11 +0000
Subject: cvs: php4 /ext/sockets sockets.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-1687@lists.php.net to get a copy of this message
sterling Sun Sep 10 16:18:11 2000 EDT Modified files: /php4/ext/sockets sockets.c Log: Fix compile warning. Fix proto. Change PHP_MINFO output to be consistent. Index: php4/ext/sockets/sockets.c diff -u php4/ext/sockets/sockets.c:1.9 php4/ext/sockets/sockets.c:1.10 --- php4/ext/sockets/sockets.c:1.9 Wed Aug 23 06:47:00 2000 +++ php4/ext/sockets/sockets.c Sun Sep 10 16:18:11 2000 @@ -17,7 +17,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: sockets.c,v 1.9 2000/08/23 13:47:00 eschmid Exp $ */ +/* $Id: sockets.c,v 1.10 2000/09/10 23:18:11 sterling Exp $ */ #include "php.h" @@ -225,7 +225,7 @@ PHP_MINFO_FUNCTION(sockets) { php_info_print_table_start(); - php_info_print_table_header(2, "sockets support", "enabled"); + php_info_print_table_row(2, "sockets support", "enabled"); php_info_print_table_end(); } @@ -359,7 +359,7 @@ } /* }}} */ -/* {{{ proto void select(int max_fd, resource readfds, resource writefds, resource exceptfds, int tv_sec, int tv_usec) +/* {{{ proto int select(int max_fd, resource readfds, resource writefds, resource exceptfds, int tv_sec, int tv_usec) Runs the select() system call on the sets mentioned with a timeout specified by tv_sec and tv_usec */ /* See select(2) man page for details. @@ -872,7 +872,7 @@ switch(sa.sa_family) { case AF_INET: { - sin = &sa; + sin = (struct sockaddr_in *)&sa; if (argc != 3) { WRONG_PARAM_COUNT; @@ -897,7 +897,7 @@ break; } case AF_UNIX: { - sun = &sa; + sun = (struct sockaddr_un *)&sa; snprintf(sun->sun_path, 108, "%s", Z_STRVAL_PP(addr)); ret = connect(Z_LVAL_PP(sockfd), (struct sockaddr *) sun, SUN_LEN(sun)); break;

« previous php.cvs (#1687) next »