cvs commit: apache-2.0/src/lib/apr/network_io/beos sockopt.c
dreid 99/10/10 06:54:18 Modified:src/lib/apr/network_io/beos sockopt.c Log: This stops a small moan by the compiler. h_errno is a global so it'll need to be made threadsafe. Revision ChangesPath 1.5 +2 -1 apache-2.0/src/lib/apr/network_io/beos/sockopt.c Index: sockopt.c === RCS file: /home/cvs/apache-2.0/src/lib/apr/network_io/beos/sockopt.c,v retrieving revision 1.4 retrieving revision 1.5 diff -u -r1.4 -r1.5 --- sockopt.c 1999/10/08 21:27:41 1.4 +++ sockopt.c 1999/10/10 13:54:18 1.5 @@ -108,7 +108,7 @@ hptr = gethostbyaddr((char *)&(sock->addr->sin_addr), sizeof(struct in_addr), AF_INET); if (hptr != NULL) { -*name = ap_pstrdup(sock->cntxt, hptr->h_name); +name = (char**)ap_pstrdup(sock->cntxt, hptr->h_name); if (*name) { return APR_SUCCESS; } @@ -116,5 +116,6 @@ } /* XXX - Is this threadsafe? - manoj */ +/* on BeOS this is a global... */ return h_errno; }
cvs commit: apache-2.0/src/lib/apr/network_io/beos sockopt.c
dreid 99/10/13 13:14:33 Modified:src/lib/apr/network_io/beos sockopt.c Log: This fixes that small cast that isn't needed now that I've included the apr_lib.h file for the prototype. Revision ChangesPath 1.8 +2 -1 apache-2.0/src/lib/apr/network_io/beos/sockopt.c Index: sockopt.c === RCS file: /home/cvs/apache-2.0/src/lib/apr/network_io/beos/sockopt.c,v retrieving revision 1.7 retrieving revision 1.8 diff -u -r1.7 -r1.8 --- sockopt.c 1999/10/10 20:34:55 1.7 +++ sockopt.c 1999/10/13 20:14:32 1.8 @@ -62,6 +62,7 @@ #include "networkio.h" #include "apr_network_io.h" #include "apr_general.h" +#include "apr_lib.h" ap_status_t ap_setsocketopt(struct socket_t *sock, ap_int32_t opt, ap_int32_t on) { @@ -108,7 +109,7 @@ hptr = gethostbyaddr((char *)&(sock->addr->sin_addr), sizeof(struct in_addr), AF_INET); if (hptr != NULL) { -*name = (char*)ap_pstrdup(sock->cntxt, hptr->h_name); +*name = ap_pstrdup(sock->cntxt, hptr->h_name); if (*name) { return APR_SUCCESS; }