Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/compat/sys sync with mount.h, always use the structure s...



details:   https://anonhg.NetBSD.org/src/rev/af15e56a214b
branches:  trunk
changeset: 973543:af15e56a214b
user:      christos <christos%NetBSD.org@localhost>
date:      Fri Jul 03 19:00:01 2020 +0000

description:
sync with mount.h, always use the structure size.

diffstat:

 sys/compat/sys/statvfs.h |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (18 lines):

diff -r ea2ad0a3159a -r af15e56a214b sys/compat/sys/statvfs.h
--- a/sys/compat/sys/statvfs.h  Fri Jul 03 18:49:37 2020 +0000
+++ b/sys/compat/sys/statvfs.h  Fri Jul 03 19:00:01 2020 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: statvfs.h,v 1.2 2020/07/03 14:08:53 christos Exp $      */
+/*     $NetBSD: statvfs.h,v 1.3 2020/07/03 19:00:01 christos Exp $      */
 
 /*-
  * Copyright (c) 2019 The NetBSD Foundation, Inc.
@@ -116,7 +116,7 @@
        int error;
 
        statvfs_to_statvfs90(vs, s90);
-       error = copyout(s90, vs90, l);
+       error = copyout(s90, vs90, sizeof(*s90));
        kmem_free(s90, sizeof(*s90));
 
        return error;



Home | Main Index | Thread Index | Old Index