bzero -> memset
This commit is contained in:
parent
228b23427f
commit
f2f13262df
|
@ -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;
|
||||
|
|
|
@ -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? */
|
||||
|
|
Loading…
Reference in New Issue