diff options
| author | 2014-01-21 01:48:44 +0000 | |
|---|---|---|
| committer | 2014-01-21 01:48:44 +0000 | |
| commit | 91ba896db697da68a85cad0ccf0e596c2e766af5 (patch) | |
| tree | 239fb63a3973e6123aad5b4c47ed9a2cc65139b8 /sys/compat/linux/linux_cdrom.c | |
| parent | naughty guenther didn't compile (diff) | |
| download | wireguard-openbsd-91ba896db697da68a85cad0ccf0e596c2e766af5.tar.xz wireguard-openbsd-91ba896db697da68a85cad0ccf0e596c2e766af5.zip | |
bzero -> memset
Diffstat (limited to 'sys/compat/linux/linux_cdrom.c')
| -rw-r--r-- | sys/compat/linux/linux_cdrom.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/compat/linux/linux_cdrom.c b/sys/compat/linux/linux_cdrom.c index 38385553335..7c74d8d91b0 100644 --- a/sys/compat/linux/linux_cdrom.c +++ b/sys/compat/linux/linux_cdrom.c @@ -1,5 +1,5 @@ -/* $OpenBSD: linux_cdrom.c,v 1.9 2012/04/22 05:43:14 guenther Exp $ */ +/* $OpenBSD: linux_cdrom.c,v 1.10 2014/01/21 01:49:13 tedu Exp $ */ /* * Copyright 1997 Niels Provos <provos@physnet.uni-hamburg.de> * All rights reserved. @@ -137,7 +137,7 @@ linux_ioctl_cdrom(p, v, retval) sg = stackgap_init(p->p_emul); - bzero(&tmpb.tes, sizeof tmpb.tes); + memset(&tmpb.tes, 0, sizeof tmpb.tes); tmpb.tes.starting_track = tmpl.te.cdte_track; tmpb.tes.address_format = (tmpl.te.cdte_format == LINUX_CDROM_MSF) ? CD_MSF_FORMAT : CD_LBA_FORMAT; @@ -166,7 +166,7 @@ linux_ioctl_cdrom(p, v, retval) sg = stackgap_init(p->p_emul); - bzero(&tmpb.sc, sizeof tmpb.sc); + memset(&tmpb.sc, 0, sizeof tmpb.sc); tmpb.sc.data_format = CD_CURRENT_POSITION; tmpb.sc.address_format = (tmpl.sc.cdsc_format == LINUX_CDROM_MSF) ? CD_MSF_FORMAT : CD_LBA_FORMAT; |
