From f2f13262df84965f124d8614d2d4078c4d7424ba Mon Sep 17 00:00:00 2001 From: thorpej Date: Wed, 18 Jul 2001 06:48:27 +0000 Subject: [PATCH] bzero -> memset --- sys/kern/sys_pipe.c | 6 +++--- sys/kern/tty_conf.c | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/sys/kern/sys_pipe.c b/sys/kern/sys_pipe.c index ae8e38147c84..67c29efb5926 100644 --- a/sys/kern/sys_pipe.c +++ b/sys/kern/sys_pipe.c @@ -1,4 +1,4 @@ -/* $NetBSD: sys_pipe.c,v 1.8 2001/07/17 18:21:59 jdolecek Exp $ */ +/* $NetBSD: sys_pipe.c,v 1.9 2001/07/18 06:48:27 thorpej Exp $ */ /* * Copyright (c) 1996 John S. Dyson @@ -437,7 +437,7 @@ pipe_create(cpipep, allockva) * if pipespace() fails. */ cpipe->pipe_buffer.buffer = NULL; - bzero(&cpipe->pipe_sel, sizeof(cpipe->pipe_sel)); + memset(&cpipe->pipe_sel, 0, sizeof(cpipe->pipe_sel)); cpipe->pipe_state = PIPE_SIGNALR; cpipe->pipe_peer = NULL; cpipe->pipe_busy = 0; @@ -1559,7 +1559,7 @@ pipe_stat(fp, ub, p) { struct pipe *pipe = (struct pipe *)fp->f_data; - bzero((caddr_t)ub, sizeof(*ub)); + memset((caddr_t)ub, 0, sizeof(*ub)); ub->st_mode = S_IFIFO; ub->st_blksize = pipe->pipe_buffer.size; ub->st_size = pipe->pipe_buffer.cnt; diff --git a/sys/kern/tty_conf.c b/sys/kern/tty_conf.c index baf0c28a4876..825ef4cb9712 100644 --- a/sys/kern/tty_conf.c +++ b/sys/kern/tty_conf.c @@ -1,4 +1,4 @@ -/* $NetBSD: tty_conf.c,v 1.33 2001/05/24 10:33:08 kristerw Exp $ */ +/* $NetBSD: tty_conf.c,v 1.34 2001/07/18 06:48:28 thorpej Exp $ */ /*- * Copyright (c) 1982, 1986, 1991, 1993 @@ -283,7 +283,7 @@ ttyldisc_init() slinesw = LSWITCHBRK; linesw = malloc(slinesw * sizeof(struct linesw *), M_TTYS, M_WAITOK); - bzero(linesw, slinesw * sizeof(struct linesw *)); + memset(linesw, 0, slinesw * sizeof(struct linesw *)); TTYLDISCINIT(termios_disc, 0); /* Do we really need this one? */