[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:
jow 2011-02-27 12:53:12 +00:00
parent e285692e21
commit c0a5e106c5

View File

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