Source-Changes-HG archive

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

[src/trunk]: src/tests/fs/common Move nfstestargs to header "because I need t...



details:   https://anonhg.NetBSD.org/src/rev/431bf3c90c0b
branches:  trunk
changeset: 756678:431bf3c90c0b
user:      pooka <pooka%NetBSD.org@localhost>
date:      Wed Jul 28 15:16:50 2010 +0000

description:
Move nfstestargs to header "because I need them".  A more sweeping
action would be good here.

diffstat:

 tests/fs/common/h_fsmacros.h |  9 ++++++++-
 tests/fs/common/nfs.c        |  7 +------
 2 files changed, 9 insertions(+), 7 deletions(-)

diffs (42 lines):

diff -r b3b7ccfce238 -r 431bf3c90c0b tests/fs/common/h_fsmacros.h
--- a/tests/fs/common/h_fsmacros.h      Wed Jul 28 15:15:22 2010 +0000
+++ b/tests/fs/common/h_fsmacros.h      Wed Jul 28 15:16:50 2010 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: h_fsmacros.h,v 1.15 2010/07/28 14:23:02 pooka Exp $    */
+/*     $NetBSD: h_fsmacros.h,v 1.16 2010/07/28 15:16:50 pooka Exp $    */
 
 /*-
  * Copyright (c) 2010 The NetBSD Foundation, Inc.
@@ -160,4 +160,11 @@
 #define FSTYPE_TMPFS(tc)\
     (strcmp(atf_tc_get_md_var(tc, "X-fs.type"), MOUNT_TMPFS) == 0)
 
+
+/* file system args structures */
+struct nfstestargs {
+       pid_t ta_childpid;
+       char ta_ethername[MAXPATHLEN];
+};
+
 #endif /* __H_FSMACROS_H_ */
diff -r b3b7ccfce238 -r 431bf3c90c0b tests/fs/common/nfs.c
--- a/tests/fs/common/nfs.c     Wed Jul 28 15:15:22 2010 +0000
+++ b/tests/fs/common/nfs.c     Wed Jul 28 15:16:50 2010 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: nfs.c,v 1.1 2010/07/26 16:15:49 pooka Exp $    */
+/*     $NetBSD: nfs.c,v 1.2 2010/07/28 15:16:50 pooka Exp $    */
 
 /*
  * Copyright (c) 2010 The NetBSD Foundation, Inc.
@@ -57,11 +57,6 @@
 #define NETNETMASK "255.255.255.0"
 #define EXPORTPATH "/myexport"
 
-struct nfstestargs {
-       pid_t ta_childpid;
-       char ta_ethername[MAXPATHLEN];
-};
-
 static void
 childfail(int status)
 {



Home | Main Index | Thread Index | Old Index