Source-Changes-HG archive

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

[src/trunk]: src/tests/fs/msdosfs Properly initialize arguments for the tmpfs...



details:   https://anonhg.NetBSD.org/src/rev/c42f2e2ae639
branches:  trunk
changeset: 329803:c42f2e2ae639
user:      martin <martin%NetBSD.org@localhost>
date:      Tue Jun 10 13:15:18 2014 +0000

description:
Properly initialize arguments for the tmpfs mounted in this test.
Pointed out by pooka@.

diffstat:

 tests/fs/msdosfs/t_snapshot.c |  6 ++----
 1 files changed, 2 insertions(+), 4 deletions(-)

diffs (20 lines):

diff -r 2977e2da4685 -r c42f2e2ae639 tests/fs/msdosfs/t_snapshot.c
--- a/tests/fs/msdosfs/t_snapshot.c     Tue Jun 10 11:36:41 2014 +0000
+++ b/tests/fs/msdosfs/t_snapshot.c     Tue Jun 10 13:15:18 2014 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: t_snapshot.c,v 1.2 2013/02/06 09:05:01 hannken Exp $   */
+/*     $NetBSD: t_snapshot.c,v 1.3 2014/06/10 13:15:18 martin Exp $    */
 
 #include <sys/types.h>
 #include <sys/mount.h>
@@ -40,9 +40,7 @@
 static void
 begin(void)
 {
-       struct tmpfs_args targs;
-
-       targs.ta_version = TMPFS_ARGS_VERSION;
+       struct tmpfs_args targs = { .ta_version = TMPFS_ARGS_VERSION, };
 
        if (rump_sys_mkdir("/stor", 0777) == -1)
                atf_tc_fail_errno("mkdir /stor");



Home | Main Index | Thread Index | Old Index