chillispot: use memset instead of bzero
authorJo-Philipp Wich <jow@openwrt.org>
Sun, 27 Feb 2011 12:53:12 +0000 (12:53 +0000)
committerJo-Philipp Wich <jow@openwrt.org>
Sun, 27 Feb 2011 12:53:12 +0000 (12:53 +0000)
SVN-Revision: 25751

net/chillispot/patches/150-chillispot-rmtctrl.patch

index 7f3e20aeaab5903ba039df48d8568952cdc4609e..db5df95979df45be6c7bba5a74c6bf1ad3599206 100644 (file)
 +      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");