diff options
author | Eric Andersen | 2001-07-17 01:12:36 +0000 |
---|---|---|
committer | Eric Andersen | 2001-07-17 01:12:36 +0000 |
commit | 044228d5ecb9b79397f9fc915d046cf4538281e2 (patch) | |
tree | 4c43e4947b0196d807249f8f6e1c9c679b6bbcde /sysklogd/syslogd.c | |
parent | 51ded05b3bf4df6f126420d39a40d27ea0728aa9 (diff) | |
download | busybox-044228d5ecb9b79397f9fc915d046cf4538281e2.zip busybox-044228d5ecb9b79397f9fc915d046cf4538281e2.tar.gz |
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)
Diffstat (limited to 'sysklogd/syslogd.c')
-rw-r--r-- | sysklogd/syslogd.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sysklogd/syslogd.c b/sysklogd/syslogd.c index d334c50..8ae70a1 100644 --- a/sysklogd/syslogd.c +++ b/sysklogd/syslogd.c @@ -346,7 +346,7 @@ static const int IOV_COUNT = 2; struct iovec iov[IOV_COUNT]; struct iovec *v = iov; - bzero(&res, sizeof(res)); + memset(&res, 0, sizeof(res)); snprintf(res, sizeof(res), "<%d>", pri); v->iov_base = res ; v->iov_len = strlen(res); @@ -442,7 +442,7 @@ static void init_RemoteLog (void){ struct hostent *hostinfo; int len = sizeof(remoteaddr); - bzero(&remoteaddr, len); + memset(&remoteaddr, 0, len); remotefd = socket(AF_INET, SOCK_DGRAM, 0); |