Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/compat/osf1 fix incorrect sizes to memset
details: https://anonhg.NetBSD.org/src/rev/4ec36f6db68f
branches: trunk
changeset: 791084:4ec36f6db68f
user: christos <christos%NetBSD.org@localhost>
date: Mon Nov 04 16:52:08 2013 +0000
description:
fix incorrect sizes to memset
diffstat:
sys/compat/osf1/osf1_cvt.c | 10 +++++-----
1 files changed, 5 insertions(+), 5 deletions(-)
diffs (45 lines):
diff -r 87279fdbcfb7 -r 4ec36f6db68f sys/compat/osf1/osf1_cvt.c
--- a/sys/compat/osf1/osf1_cvt.c Mon Nov 04 15:06:26 2013 +0000
+++ b/sys/compat/osf1/osf1_cvt.c Mon Nov 04 16:52:08 2013 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: osf1_cvt.c,v 1.27 2010/04/23 15:19:20 rmind Exp $ */
+/* $NetBSD: osf1_cvt.c,v 1.28 2013/11/04 16:52:08 christos Exp $ */
/*
* Copyright (c) 1999 Christopher G. Demetriou. All rights reserved.
@@ -58,7 +58,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: osf1_cvt.c,v 1.27 2010/04/23 15:19:20 rmind Exp $");
+__KERNEL_RCSID(0, "$NetBSD: osf1_cvt.c,v 1.28 2013/11/04 16:52:08 christos Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -293,7 +293,7 @@
osf1_cvt_flock_from_native(const struct flock *nf, 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;
@@ -332,7 +332,7 @@
osf1_cvt_flock_to_native(const struct osf1_flock *of, 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;
@@ -380,7 +380,7 @@
{
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 */
Home |
Main Index |
Thread Index |
Old Index