Source-Changes-HG archive

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

[src/trunk]: src/tests/rump/modautoload Fill old_len which is required by sys...



details:   https://anonhg.NetBSD.org/src/rev/2f24b2f33b3f
branches:  trunk
changeset: 347738:2f24b2f33b3f
user:      ozaki-r <ozaki-r%NetBSD.org@localhost>
date:      Wed Sep 14 03:19:11 2016 +0000

description:
Fill old_len which is required by sysctlbyname

diffstat:

 tests/rump/modautoload/t_modautoload.c |  3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diffs (17 lines):

diff -r 127c97f3be4d -r 2f24b2f33b3f tests/rump/modautoload/t_modautoload.c
--- a/tests/rump/modautoload/t_modautoload.c    Wed Sep 14 01:48:08 2016 +0000
+++ b/tests/rump/modautoload/t_modautoload.c    Wed Sep 14 03:19:11 2016 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: t_modautoload.c,v 1.4 2015/12/27 08:21:44 pgoyette Exp $       */
+/*     $NetBSD: t_modautoload.c,v 1.5 2016/09/14 03:19:11 ozaki-r Exp $        */
 
 #include <sys/types.h>
 #include <sys/mount.h>
@@ -46,6 +46,7 @@
                atf_tc_fail_errno("mkdir /kern");
 
        new_autoload = true;
+       old_len = sizeof(old_autoload);
        new_len = sizeof(new_autoload);
        error = sysctlbyname("kern.module.autoload",
                                  &old_autoload, &old_len,



Home | Main Index | Thread Index | Old Index