Skip to content

Commit

Permalink
nss_wins: Fix a type-punned warning
Browse files Browse the repository at this point in the history
  • Loading branch information
vlendec committed Jan 1, 2011
1 parent 3b4fd35 commit 407a1b3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion nsswitch/wins.c
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,8 @@ static struct in_addr *lookup_byname_backend(const char *name, int *count)
free(ret);
return NULL;
}
*ret = ((struct sockaddr_in *)&address[0].ss)->sin_addr;
*ret = ((struct sockaddr_in *)(void *)&address[0].ss)
->sin_addr;
free( address );
return ret;
}
Expand Down

0 comments on commit 407a1b3

Please sign in to comment.