From: Paul Mackerras Date: Fri, 16 Apr 1999 11:35:59 +0000 (+0000) Subject: use memset not bzero X-Git-Tag: ppp-2.4.7~734 X-Git-Url: http://git.ozlabs.org/?p=ppp.git;a=commitdiff_plain;h=3b500e7b064714f152caeaec73aae9844d12613b use memset not bzero --- 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 @@ -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 @@ -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; }