[CRIU] [PATCH 1/2] fd: Mark inherit_fd_lookup_fd static
Pavel Emelyanov
xemul at parallels.com
Tue Dec 30 05:28:39 PST 2014
Signed-off-by: Pavel Emelyanov <xemul at parallels.com>
---
files.c | 4 +++-
include/files.h | 1 -
2 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/files.c b/files.c
index 55cbac8..25ffe9e 100644
--- a/files.c
+++ b/files.c
@@ -930,6 +930,8 @@ static int open_fdinfos(int pid, struct list_head *list, int state)
return ret;
}
+static struct inherit_fd *inherit_fd_lookup_fd(int fd, const char *caller);
+
int close_old_fds(struct pstree_item *me)
{
DIR *dir;
@@ -1364,7 +1366,7 @@ int inherit_fd_lookup_id(char *id)
/*
* Look up the inherit fd list by a file descriptor.
*/
-struct inherit_fd *inherit_fd_lookup_fd(int fd, const char *caller)
+static struct inherit_fd *inherit_fd_lookup_fd(int fd, const char *caller)
{
struct inherit_fd *ret;
struct inherit_fd *inh;
diff --git a/include/files.h b/include/files.h
index e3f79cc..5c9ab4e 100644
--- a/include/files.h
+++ b/include/files.h
@@ -171,7 +171,6 @@ extern int dump_unsupp_fd(struct fd_parms *p, int lfd,
extern int inherit_fd_add(char *optarg);
extern void inherit_fd_log(void);
extern int inherit_fd_lookup_id(char *id);
-extern struct inherit_fd *inherit_fd_lookup_fd(int fd, const char *caller);
extern int inherit_fd_resolve_clash(int fd);
extern int inherit_fd_fini(void);
--
1.8.4.2
More information about the CRIU
mailing list