Moved memset out of declaration block.

This commit is contained in:
mainzelm 2001-07-10 11:46:21 +00:00
parent 878e0399f0
commit 0fb3d6da8e
1 changed files with 3 additions and 2 deletions

View File

@ -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;