From c0a5e106c5390695f5048c5f2f186abafaaf82f7 Mon Sep 17 00:00:00 2001 From: jow Date: Sun, 27 Feb 2011 12:53:12 +0000 Subject: [PATCH] [packages] chillispot: use memset instead of bzero git-svn-id: svn://svn.openwrt.org/openwrt/packages@25751 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- net/chillispot/patches/150-chillispot-rmtctrl.patch | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/net/chillispot/patches/150-chillispot-rmtctrl.patch b/net/chillispot/patches/150-chillispot-rmtctrl.patch index 7f3e20aea..db5df9597 100644 --- a/net/chillispot/patches/150-chillispot-rmtctrl.patch +++ b/net/chillispot/patches/150-chillispot-rmtctrl.patch @@ -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");