Skip to content
Snippets Groups Projects
Commit 6431b5fb authored by Sebastien Ponce's avatar Sebastien Ponce Committed by Steven Murray
Browse files

Fixed trivial compilation warnings generated by gcc 4.6

parent 61c0438a
Branches
Tags
No related merge requests found
......@@ -790,7 +790,6 @@ char *_Cregexp_atom(int *flagp,
{
char *ret;
int flags;
char dummy;
*flagp = WORST; /* Tentatively. */
......@@ -823,8 +822,7 @@ char *_Cregexp_atom(int *flagp,
_Cregexp_dummy,
_Cregexp_code,
_Cregexp_size);
/* Use dummy variable to avoid warning with gcc -Wall */
dummy = *(*_Cregexp_parse)++;
(*_Cregexp_parse)++;
} else {
ret = _Cregexp_node((char) ANYOF,
_Cregexp_dummy,
......
......@@ -51,11 +51,10 @@ int isremote(struct in_addr from_host,
struct ifconf ifc; /* ifconf structure */
struct ifreq *ifr; /* Pointer on ifreq structure */
int n ;
unsigned int netw ;
union adr {
u_long adr_i;
unsigned char adr_c[4];
} adr,*ladd;
} *ladd;
struct in_addr in ;
struct sockaddr_in addr;
char *last = NULL;
......@@ -155,8 +154,6 @@ int isremote(struct in_addr from_host,
}
} /* if ( host_name != NULL ) */
netw = inet_netof(from_host);
adr.adr_i=from_host.s_addr;
log(LOG_DEBUG, "isremote(): Client host is %s\n",inet_ntoa( from_host )) ;
if( (s_s = socket(AF_INET, SOCK_DGRAM, 0)) == SOCKET_ERROR ) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment