Commit 8f691c40 authored by Pavel Emelyanov's avatar Pavel Emelyanov

fd: Mark inherit_fd_lookup_fd static

Signed-off-by: 's avatarPavel Emelyanov <xemul@parallels.com>
parent 6d6db9e1
...@@ -930,6 +930,8 @@ static int open_fdinfos(int pid, struct list_head *list, int state) ...@@ -930,6 +930,8 @@ static int open_fdinfos(int pid, struct list_head *list, int state)
return ret; return ret;
} }
static struct inherit_fd *inherit_fd_lookup_fd(int fd, const char *caller);
int close_old_fds(struct pstree_item *me) int close_old_fds(struct pstree_item *me)
{ {
DIR *dir; DIR *dir;
...@@ -1364,7 +1366,7 @@ int inherit_fd_lookup_id(char *id) ...@@ -1364,7 +1366,7 @@ int inherit_fd_lookup_id(char *id)
/* /*
* Look up the inherit fd list by a file descriptor. * 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 *ret;
struct inherit_fd *inh; struct inherit_fd *inh;
......
...@@ -171,7 +171,6 @@ extern int dump_unsupp_fd(struct fd_parms *p, int lfd, ...@@ -171,7 +171,6 @@ extern int dump_unsupp_fd(struct fd_parms *p, int lfd,
extern int inherit_fd_add(char *optarg); extern int inherit_fd_add(char *optarg);
extern void inherit_fd_log(void); extern void inherit_fd_log(void);
extern int inherit_fd_lookup_id(char *id); 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_resolve_clash(int fd);
extern int inherit_fd_fini(void); extern int inherit_fd_fini(void);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment