8000 lsns: enhance compilation without USE_NS_GET_API · util-linux/util-linux@05d494d · GitHub
[go: up one dir, main page]

Skip to content

Commit 05d494d

Browse files
committed
lsns: enhance compilation without USE_NS_GET_API
- Move add_namespace_for_nsfd() declaration to the #ifdef block (based on c62ed3d) References: 2ced434 Signed-off-by: Karel Zak <kzak@redhat.com>
1 parent bd36a07 commit 05d494d

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

sys-utils/lsns.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -304,6 +304,9 @@ static inline const struct colinfo *get_column_info(unsigned num)
304304
}
305305

306306
#ifdef USE_NS_GET_API
307+
static struct lsns_namespace *add_namespace_for_nsfd(struct lsns *ls, int fd, ino_t ino);
308+
309+
307310
/* Get the inode number for the parent namespace of the namespace `fd' specifies.
308311
* If `pfd' is non-null, the file descriptor opening the parent namespace.*/
309312
static int get_parent_ns_ino(int fd, enum lsns_type lsns_type, ino_t *pino, int *pfd)
@@ -422,8 +425,6 @@ static int parse_proc_stat(char *line, pid_t *pid, char *state, pid_t *ppid)
422425
return rc;
423426
}
424427

425-
static struct lsns_namespace *add_namespace_for_nsfd(struct lsns *ls, int fd, ino_t ino);
426-
427428
static struct lsns_namespace *get_namespace(struct lsns *ls, ino_t ino)
428429
{
429430
struct list_head *p;

0 commit comments

Comments
 (0)
0