[packages] chillispot: use memset instead of bzero
git-svn-id: svn://svn.openwrt.org/openwrt/packages@25751 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
parent
e285692e21
commit
c0a5e106c5
@ -1322,7 +1322,7 @@
|
||||
+ srv.addr.sin_family = AF_INET;
|
||||
+ srv.addr.sin_port = htons(rmtport);
|
||||
+ srv.addr.sin_addr.s_addr = rmtlisten.s_addr;
|
||||
+ bzero(&(srv.addr.sin_zero),8);
|
||||
+ memset(&(srv.addr.sin_zero), 0, 8);
|
||||
+
|
||||
+ if(bind(srv.fd,(struct sockaddr*)&srv.addr,sizeof(struct sockaddr))==-1) {
|
||||
+ printf("error en bind() \n");
|
||||
|
Loading…
x
Reference in New Issue
Block a user