summaryrefslogtreecommitdiffstats
path: root/sys/kern/sys_socket.c
diff options
context:
space:
mode:
authortedu <tedu@openbsd.org>2014-07-13 15:52:38 +0000
committertedu <tedu@openbsd.org>2014-07-13 15:52:38 +0000
commitb67858fa5d37842a712fa90a444d517277ac4695 (patch)
tree834646e8ee39a0b231ea7cbf32e9318b05c30821 /sys/kern/sys_socket.c
parenttrim some casts (diff)
downloadwireguard-openbsd-b67858fa5d37842a712fa90a444d517277ac4695.tar.xz
wireguard-openbsd-b67858fa5d37842a712fa90a444d517277ac4695.zip
bzero -> memset. for the speeds.
Diffstat (limited to 'sys/kern/sys_socket.c')
-rw-r--r--sys/kern/sys_socket.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/kern/sys_socket.c b/sys/kern/sys_socket.c
index 0e2f78af63c..df1c92719b2 100644
--- a/sys/kern/sys_socket.c
+++ b/sys/kern/sys_socket.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: sys_socket.c,v 1.18 2014/03/30 21:54:48 guenther Exp $ */
+/* $OpenBSD: sys_socket.c,v 1.19 2014/07/13 15:52:38 tedu Exp $ */
/* $NetBSD: sys_socket.c,v 1.13 1995/08/12 23:59:09 mycroft Exp $ */
/*
@@ -169,7 +169,7 @@ soo_stat(struct file *fp, struct stat *ub, struct proc *p)
{
struct socket *so = fp->f_data;
- bzero(ub, sizeof (*ub));
+ memset(ub, 0, sizeof (*ub));
ub->st_mode = S_IFSOCK;
if ((so->so_state & SS_CANTRCVMORE) == 0 ||
so->so_rcv.sb_cc != 0)