aboutsummaryrefslogtreecommitdiff
path: root/syslogd.c
diff options
context:
space:
mode:
authorandersen <andersen@69ca8d6d-28ef-0310-b511-8ec308f3f277>2001-07-17 01:12:36 +0000
committerandersen <andersen@69ca8d6d-28ef-0310-b511-8ec308f3f277>2001-07-17 01:12:36 +0000
commit40f493d3ba67ef58f18450dca116680a627d1cf7 (patch)
tree4c43e4947b0196d807249f8f6e1c9c679b6bbcde /syslogd.c
parent9b29bac7278544197cdc0f2554ed089f97ec39a4 (diff)
downloadbusybox-w32-40f493d3ba67ef58f18450dca116680a627d1cf7.tar.gz
busybox-w32-40f493d3ba67ef58f18450dca116680a627d1cf7.tar.bz2
busybox-w32-40f493d3ba67ef58f18450dca116680a627d1cf7.zip
This is vodz' latest patch. Sorry it took so long...
1) ping cleanup (compile fix from this patch already applied). 2) traceroute call not spare ntohl() now (and reduce size); 3) Fix for functions not declared static in insmod, ash, vi and mount. 4) a more simple API cmdedit :)) 5) adds "stopped jobs" warning to ash on Ctrl-D and fixes "ignoreeof" option 6) reduce exporting library function index->strchr (traceroute), bzero->memset (syslogd) git-svn-id: svn://busybox.net/trunk/busybox@3103 69ca8d6d-28ef-0310-b511-8ec308f3f277
Diffstat (limited to 'syslogd.c')
-rw-r--r--syslogd.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/syslogd.c b/syslogd.c
index d334c50c9..8ae70a1ed 100644
--- a/syslogd.c
+++ b/syslogd.c
@@ -346,7 +346,7 @@ static const int IOV_COUNT = 2;
346 struct iovec iov[IOV_COUNT]; 346 struct iovec iov[IOV_COUNT];
347 struct iovec *v = iov; 347 struct iovec *v = iov;
348 348
349 bzero(&res, sizeof(res)); 349 memset(&res, 0, sizeof(res));
350 snprintf(res, sizeof(res), "<%d>", pri); 350 snprintf(res, sizeof(res), "<%d>", pri);
351 v->iov_base = res ; 351 v->iov_base = res ;
352 v->iov_len = strlen(res); 352 v->iov_len = strlen(res);
@@ -442,7 +442,7 @@ static void init_RemoteLog (void){
442 struct hostent *hostinfo; 442 struct hostent *hostinfo;
443 int len = sizeof(remoteaddr); 443 int len = sizeof(remoteaddr);
444 444
445 bzero(&remoteaddr, len); 445 memset(&remoteaddr, 0, len);
446 446
447 remotefd = socket(AF_INET, SOCK_DGRAM, 0); 447 remotefd = socket(AF_INET, SOCK_DGRAM, 0);
448 448