[CRIU] [PATCH 2/3] namespaces: Unexport pid_ns_helper_sock()

Kirill Tkhai ktkhai at virtuozzo.com
Thu May 11 03:45:30 PDT 2017


It's used in the same file, where it's declarated.

Signed-off-by: Kirill Tkhai <ktkhai at virtuozzo.com>
---
 criu/include/namespaces.h |    2 --
 criu/namespaces.c         |    2 +-
 2 files changed, 1 insertion(+), 3 deletions(-)

diff --git a/criu/include/namespaces.h b/criu/include/namespaces.h
index ec228876b..5e7cbc2e6 100644
--- a/criu/include/namespaces.h
+++ b/criu/include/namespaces.h
@@ -272,6 +272,4 @@ extern int create_pid_ns_helper(struct ns_id *ns);
 extern int destroy_pid_ns_helpers(void);
 extern int request_set_next_pid(int pid_ns_id, pid_t pid, int sk);
 
-extern int pid_ns_helper_sock(struct ns_id *ns);
-
 #endif /* __CR_NS_H__ */
diff --git a/criu/namespaces.c b/criu/namespaces.c
index 3d75317c1..bb8c7dfff 100644
--- a/criu/namespaces.c
+++ b/criu/namespaces.c
@@ -2554,7 +2554,7 @@ int reserve_pid_ns_helpers(void)
 	return walk_namespaces(&pid_ns_desc, do_reserve_pid_ns_helpers, NULL);
 }
 
-int pid_ns_helper_sock(struct ns_id *ns)
+static int pid_ns_helper_sock(struct ns_id *ns)
 {
 	struct sockaddr_un addr;
 	socklen_t len;



More information about the CRIU mailing list