Moved memset out of declaration block.
This commit is contained in:
parent
878e0399f0
commit
0fb3d6da8e
|
@ -60,10 +60,11 @@ int scheme_bind(int sockfd, int family, scheme_value scheme_name)
|
|||
{
|
||||
struct sockaddr_in name;
|
||||
|
||||
memset(&name, 0, sizeof(name));
|
||||
|
||||
u_long addr=GET_LONG(scheme_name,0);
|
||||
u_short port=htons((u_short)ntohl(GET_LONG(scheme_name,1)));
|
||||
|
||||
memset(&name, 0, sizeof(name));
|
||||
|
||||
name.sin_family=AF_INET;
|
||||
name.sin_addr.s_addr=addr;
|
||||
name.sin_port=port;
|
||||
|
|
Loading…
Reference in New Issue