From: Ilia Alshanetsky Date: Tue, 14 Jan 2003 17:45:31 +0000 (+0000) Subject: Fixed compile warning & removed useless variable. X-Git-Tag: PHP_5_0_dev_before_13561_fix~241 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=62f7e2714130efa8390128804166f3d482ced79b;p=php Fixed compile warning & removed useless variable. --- diff --git a/ext/hyperwave/hg_comm.c b/ext/hyperwave/hg_comm.c index fb5517c14f..856b1c1bfa 100644 --- a/ext/hyperwave/hg_comm.c +++ b/ext/hyperwave/hg_comm.c @@ -42,6 +42,7 @@ # include # include # include +# include #endif #include #include @@ -5034,10 +5035,8 @@ int send_pipedocument(int sockfd, char *host, hw_objectID objectID, int mode, in switch(hostptr->h_addrtype) { struct in_addr *ptr1; - char *ptr; case AF_INET: - ptr = hostptr->h_addr_list[0]; - ptr1 = (struct in_addr *) ptr; + ptr1 = (struct in_addr *) hostptr->h_addr_list[0]; hostip = inet_ntoa(*ptr1); break; default: @@ -5221,10 +5220,8 @@ int send_pipecgi(int sockfd, char *host, hw_objectID objectID, char *cgi_env_str switch(hostptr->h_addrtype) { struct in_addr *ptr1; - char *ptr; case AF_INET: - ptr = hostptr->h_addr_list[0]; - ptr1 = (struct in_addr *) ptr; + ptr1 = (struct in_addr *) hostptr->h_addr_list[0]; hostip = inet_ntoa(*ptr1); break; default: @@ -5403,10 +5400,8 @@ int send_putdocument(int sockfd, char *host, hw_objectID parentID, char *objectR switch(hostptr->h_addrtype) { struct in_addr *ptr1; - char *ptr; case AF_INET: - ptr = hostptr->h_addr_list[0]; - ptr1 = (struct in_addr *) ptr; + ptr1 = (struct in_addr *) hostptr->h_addr_list[0]; hostip = inet_ntoa(*ptr1); break; default: