]> git.ipfire.org Git - thirdparty/util-linux.git/commit
lsns: enhance compilation without USE_NS_GET_API
authorKarel Zak <kzak@redhat.com>
Tue, 1 Apr 2025 12:36:36 +0000 (14:36 +0200)
committerKarel Zak <kzak@redhat.com>
Tue, 1 Apr 2025 12:36:36 +0000 (14:36 +0200)
commitc62ed3d58602fd29fe12085f7caf03761ed91b81
tree2d5927430f5c2e1dbe4db4615e8e9565f95e0c28
parenta5cc4014d3883c4c628a3df7dd6372a9047bccef
lsns: enhance compilation without USE_NS_GET_API

- Move add_namespace_for_nsfd() declaration to the #ifdef block
- Replace get_netnsid_for_fd() with inline code as it's used only once

References: 2ced43400f35f7bd45b29364e04166a63a06e16a
Signed-off-by: Karel Zak <kzak@redhat.com>
sys-utils/lsns.c