[CRIU] [PATCH 3/3] zdtm: Mark some functions as static
Pavel Emelyanov
xemul at parallels.com
Tue Dec 1 02:04:01 PST 2015
Signed-off-by: Pavel Emelyanov <xemul at parallels.com>
---
test/zdtm/lib/ns.c | 2 +-
test/zdtm/lib/test.c | 2 +-
test/zdtm/lib/zdtmtst.h | 1 -
3 files changed, 2 insertions(+), 3 deletions(-)
diff --git a/test/zdtm/lib/ns.c b/test/zdtm/lib/ns.c
index b65107b..f606c2f 100644
--- a/test/zdtm/lib/ns.c
+++ b/test/zdtm/lib/ns.c
@@ -175,7 +175,7 @@ write_out:
}
#define STATUS_FD 255
-int ns_exec(void *_arg)
+static int ns_exec(void *_arg)
{
struct ns_exec_args *args = (struct ns_exec_args *) _arg;
char buf[4096];
diff --git a/test/zdtm/lib/test.c b/test/zdtm/lib/test.c
index 94a1d3e..9d4ab0f 100644
--- a/test/zdtm/lib/test.c
+++ b/test/zdtm/lib/test.c
@@ -53,7 +53,7 @@ static void test_fini(void)
unlink(pidfile);
}
-void setup_outfile()
+static void setup_outfile()
{
if (!access(outfile, F_OK) || errno != ENOENT) {
fprintf(stderr, "Output file %s appears to exist, aborting\n",
diff --git a/test/zdtm/lib/zdtmtst.h b/test/zdtm/lib/zdtmtst.h
index c9f1064..152bec6 100644
--- a/test/zdtm/lib/zdtmtst.h
+++ b/test/zdtm/lib/zdtmtst.h
@@ -98,7 +98,6 @@ extern int parse_opt_string(char *param, void *arg);
#define __stringify(x) __stringify_1(x)
/* message helpers */
-extern void setup_outfile(void);
extern int test_log_init(const char *outfile, const char *suffix);
extern int zdtm_seccomp;
#define pr_err(format, arg...) \
--
1.9.3
More information about the CRIU
mailing list