[CRIU] [PATCH 5/5] files: Unexport collect_task_fd()

Kirill Tkhai ktkhai at virtuozzo.com
Thu Jun 1 14:35:09 PST 2017


It has only one user, so unexport it.

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

diff --git a/criu/files.c b/criu/files.c
index 00422be4f..6aa88ba8b 100644
--- a/criu/files.c
+++ b/criu/files.c
@@ -114,7 +114,7 @@ struct fdinfo_list_entry *find_used_fd(struct pstree_item *task, int fd)
 	return NULL;
 }
 
-void collect_task_fd(struct fdinfo_list_entry *new_fle, struct rst_info *ri)
+static void collect_task_fd(struct fdinfo_list_entry *new_fle, struct rst_info *ri)
 {
 	struct fdinfo_list_entry *fle;
 
diff --git a/criu/include/files.h b/criu/include/files.h
index 5ed33c0cc..9cb4aef26 100644
--- a/criu/include/files.h
+++ b/criu/include/files.h
@@ -108,7 +108,6 @@ struct file_desc_ops {
 };
 
 int collect_fd(int pid, FdinfoEntry *e, struct rst_info *rst_info);
-void collect_task_fd(struct fdinfo_list_entry *new_fle, struct rst_info *ri);
 
 unsigned int find_unused_fd(struct pstree_item *, int hint_fd);
 struct fdinfo_list_entry *find_used_fd(struct pstree_item *, int fd);



More information about the CRIU mailing list