Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/dev bzero -> memset



details:   https://anonhg.NetBSD.org/src/rev/f82b801a9e39
branches:  trunk
changeset: 512208:f82b801a9e39
user:      thorpej <thorpej%NetBSD.org@localhost>
date:      Sat Jul 07 16:51:47 2001 +0000

description:
bzero -> memset

diffstat:

 sys/dev/pckbc/pckbd.c       |  4 ++--
 sys/dev/pcmcia/if_xi.c      |  4 ++--
 sys/dev/pcmcia/pcmcia_cis.c |  6 +++---
 3 files changed, 7 insertions(+), 7 deletions(-)

diffs (63 lines):

diff -r 99fae9c8c81b -r f82b801a9e39 sys/dev/pckbc/pckbd.c
--- a/sys/dev/pckbc/pckbd.c     Sat Jul 07 16:50:41 2001 +0000
+++ b/sys/dev/pckbc/pckbd.c     Sat Jul 07 16:51:47 2001 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: pckbd.c,v 1.25 2001/06/01 00:38:31 simonb Exp $ */
+/* $NetBSD: pckbd.c,v 1.26 2001/07/07 16:58:27 thorpej Exp $ */
 
 /*-
  * Copyright (c) 1998 The NetBSD Foundation, Inc.
@@ -467,7 +467,7 @@
        pckbc_slot_t kbcslot;
        int console;
 {
-       bzero(t, sizeof(struct pckbd_internal));
+       memset(t, 0, sizeof(struct pckbd_internal));
 
        t->t_isconsole = console;
        t->t_kbctag = kbctag;
diff -r 99fae9c8c81b -r f82b801a9e39 sys/dev/pcmcia/if_xi.c
--- a/sys/dev/pcmcia/if_xi.c    Sat Jul 07 16:50:41 2001 +0000
+++ b/sys/dev/pcmcia/if_xi.c    Sat Jul 07 16:51:47 2001 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: if_xi.c,v 1.13 2001/07/07 16:50:41 thorpej Exp $ */
+/*     $NetBSD: if_xi.c,v 1.14 2001/07/07 16:51:47 thorpej Exp $ */
 /*     OpenBSD: if_xe.c,v 1.9 1999/09/16 11:28:42 niklas Exp   */
 
 /*
@@ -324,7 +324,7 @@
 
        if (cfe == NULL)
                return -1;
-       bzero(cfe, sizeof(*cfe));
+       memset(cfe, 0, sizeof(*cfe));
 
        /*
         * XXX Use preprocessor symbols instead.
diff -r 99fae9c8c81b -r f82b801a9e39 sys/dev/pcmcia/pcmcia_cis.c
--- a/sys/dev/pcmcia/pcmcia_cis.c       Sat Jul 07 16:50:41 2001 +0000
+++ b/sys/dev/pcmcia/pcmcia_cis.c       Sat Jul 07 16:51:47 2001 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: pcmcia_cis.c,v 1.23 2001/05/13 04:24:28 jmc Exp $      */
+/*     $NetBSD: pcmcia_cis.c,v 1.24 2001/07/07 16:51:47 thorpej Exp $  */
 
 /*
  * Copyright (c) 1997 Marc Horowitz.  All rights reserved.
@@ -827,7 +827,7 @@
                if ((state->pf == NULL) || (state->gotmfc == 2)) {
                        state->pf = malloc(sizeof(*state->pf), M_DEVBUF,
                            M_NOWAIT);
-                       bzero(state->pf, sizeof(*state->pf));
+                       memset(state->pf, 0, sizeof(*state->pf));
                        state->pf->number = state->count++;
                        state->pf->last_config_index = -1;
                        SIMPLEQ_INIT(&state->pf->cfe_head);
@@ -875,7 +875,7 @@
                        if (state->pf == NULL) {
                                state->pf = malloc(sizeof(*state->pf),
                                    M_DEVBUF, M_NOWAIT);
-                               bzero(state->pf, sizeof(*state->pf));
+                               memset(state->pf, 0, sizeof(*state->pf));
                                state->pf->number = state->count++;
                                state->pf->last_config_index = -1;
                                SIMPLEQ_INIT(&state->pf->cfe_head);



Home | Main Index | Thread Index | Old Index