summaryrefslogtreecommitdiff
path: root/pppdump
diff options
context:
space:
mode:
authorPaul Mackerras <paulus@samba.org>1999-04-16 11:35:59 +0000
committerPaul Mackerras <paulus@samba.org>1999-04-16 11:35:59 +0000
commit3b500e7b064714f152caeaec73aae9844d12613b (patch)
tree0e07b3105fcc3b8108a1e2da37991a65019c63ff /pppdump
parenta9d7d296618f319ab77c942a83285b9009157eae (diff)
downloadppp-3b500e7b064714f152caeaec73aae9844d12613b.tar.gz
use memset not bzero
Diffstat (limited to 'pppdump')
-rw-r--r--pppdump/bsd-comp.c4
-rw-r--r--pppdump/deflate.c4
2 files changed, 4 insertions, 4 deletions
diff --git a/pppdump/bsd-comp.c b/pppdump/bsd-comp.c
index 4ef5c7c..17c1e3b 100644
--- a/pppdump/bsd-comp.c
+++ b/pppdump/bsd-comp.c
@@ -38,7 +38,7 @@
*/
/*
- * $Id: bsd-comp.c,v 1.2 1999/04/01 07:26:30 paulus Exp $
+ * $Id: bsd-comp.c,v 1.3 1999/04/16 11:35:59 paulus Exp $
*/
#include <sys/types.h>
@@ -326,7 +326,7 @@ bsd_alloc(options, opt_len, decomp)
db = (struct bsd_db *) malloc(newlen);
if (!db)
return NULL;
- bzero(db, sizeof(*db) - sizeof(db->dict));
+ memset(db, 0, sizeof(*db) - sizeof(db->dict));
if (!decomp) {
db->lens = NULL;
diff --git a/pppdump/deflate.c b/pppdump/deflate.c
index 6d16629..840e2d4 100644
--- a/pppdump/deflate.c
+++ b/pppdump/deflate.c
@@ -25,7 +25,7 @@
* OBLIGATION TO PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS,
* OR MODIFICATIONS.
*
- * $Id: deflate.c,v 1.2 1999/04/01 07:26:30 paulus Exp $
+ * $Id: deflate.c,v 1.3 1999/04/16 11:35:59 paulus Exp $
*/
#include <sys/types.h>
@@ -153,7 +153,7 @@ z_decomp_alloc(options, opt_len)
}
state->w_size = w_size;
- bzero(&state->stats, sizeof(state->stats));
+ memset(&state->stats, 0, sizeof(state->stats));
return (void *) state;
}