]> git.ozlabs.org Git - ppp.git/commitdiff
use memset not bzero
authorPaul Mackerras <paulus@samba.org>
Fri, 16 Apr 1999 11:35:59 +0000 (11:35 +0000)
committerPaul Mackerras <paulus@samba.org>
Fri, 16 Apr 1999 11:35:59 +0000 (11:35 +0000)
pppdump/bsd-comp.c
pppdump/deflate.c

index 4ef5c7cb0b4a0c83dea740a3d84fa6a05f68deb9..17c1e3bc1136a78f46c2b6530051689edad9120b 100644 (file)
@@ -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>
  */
 
 #include <sys/types.h>
@@ -326,7 +326,7 @@ bsd_alloc(options, opt_len, decomp)
     db = (struct bsd_db *) malloc(newlen);
     if (!db)
        return NULL;
     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;
 
     if (!decomp) {
        db->lens = NULL;
index 6d16629581f852fca208d0159f8dabc02dd2c3fa..840e2d439cd3a8b315d1eff46be54b4d78a70d32 100644 (file)
@@ -25,7 +25,7 @@
  * OBLIGATION TO PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS,
  * OR MODIFICATIONS.
  *
  * 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>
  */
 
 #include <sys/types.h>
@@ -153,7 +153,7 @@ z_decomp_alloc(options, opt_len)
     }
 
     state->w_size = w_size;
     }
 
     state->w_size = w_size;
-    bzero(&state->stats, sizeof(state->stats));
+    memset(&state->stats, 0, sizeof(state->stats));
     return (void *) state;
 }
 
     return (void *) state;
 }