diff options
author | Miod Vallat <miod@cvs.openbsd.org> | 2006-02-16 20:32:34 +0000 |
---|---|---|
committer | Miod Vallat <miod@cvs.openbsd.org> | 2006-02-16 20:32:34 +0000 |
commit | 2d43749d1e7831929b96dac0c1eff8b471d1218c (patch) | |
tree | 63ff2e93bcbcf097d2068f49ce602ad138d761ed /sys/compat | |
parent | 55d220e5c801ee6fbe78720904c18e3e77140b1f (diff) |
Fix a few wrong memset() sizes; ok otto@ krw@ aaron@
Diffstat (limited to 'sys/compat')
-rw-r--r-- | sys/compat/osf1/osf1_cvt.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/compat/osf1/osf1_cvt.c b/sys/compat/osf1/osf1_cvt.c index d96730a5b8d..48f7aa6c2ae 100644 --- a/sys/compat/osf1/osf1_cvt.c +++ b/sys/compat/osf1/osf1_cvt.c @@ -1,4 +1,4 @@ -/* $OpenBSD: osf1_cvt.c,v 1.2 2001/11/06 19:53:17 miod Exp $ */ +/* $OpenBSD: osf1_cvt.c,v 1.3 2006/02/16 20:32:33 miod Exp $ */ /* $NetBSD: osf1_cvt.c,v 1.7 1999/06/26 01:23:23 cgd Exp $ */ /* @@ -313,7 +313,7 @@ osf1_cvt_flock_from_native(nf, of) struct osf1_flock *of; { - memset(of, 0, sizeof of); + memset(of, 0, sizeof *of); of->l_start = nf->l_start; of->l_len = nf->l_len; @@ -354,7 +354,7 @@ osf1_cvt_flock_to_native(of, nf) struct flock *nf; { - memset(nf, 0, sizeof nf); + memset(nf, 0, sizeof *nf); nf->l_start = of->l_start; nf->l_len = of->l_len; @@ -404,7 +404,7 @@ osf1_cvt_msghdr_xopen_to_native(omh, bmh) { unsigned long leftovers; - memset(bmh, 0, sizeof bmh); + memset(bmh, 0, sizeof *bmh); bmh->msg_name = omh->msg_name; /* XXX sockaddr translation */ bmh->msg_namelen = omh->msg_namelen; bmh->msg_iov = NULL; /* iovec xlation separate */ |