summaryrefslogtreecommitdiffstats
path: root/lib/path.c
diff options
context:
space:
mode:
authorRuediger Meier2016-02-11 03:15:12 +0100
committerRuediger Meier2016-02-11 13:40:25 +0100
commit4a04d7f3d618299739557a252046e65b87215753 (patch)
tree4d9669577425ed7a99cdf064db262d24fd3fe3f1 /lib/path.c
parentlib: fix unused parameters and variables (diff)
downloadkernel-qcow2-util-linux-4a04d7f3d618299739557a252046e65b87215753.tar.gz
kernel-qcow2-util-linux-4a04d7f3d618299739557a252046e65b87215753.tar.xz
kernel-qcow2-util-linux-4a04d7f3d618299739557a252046e65b87215753.zip
lib/path: ifdef path_set_prefix() like in path.h
Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
Diffstat (limited to 'lib/path.c')
-rw-r--r--lib/path.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/path.c b/lib/path.c
index 316af471b..1a623bc6d 100644
--- a/lib/path.c
+++ b/lib/path.c
@@ -244,8 +244,6 @@ path_read_cpulist(int maxcpus, const char *path, ...)
return set;
}
-#endif /* HAVE_CPU_SET_T */
-
void
path_set_prefix(const char *prefix)
{
@@ -253,3 +251,5 @@ path_set_prefix(const char *prefix)
strncpy(pathbuf, prefix, sizeof(pathbuf));
pathbuf[sizeof(pathbuf) - 1] = '\0';
}
+
+#endif /* HAVE_CPU_SET_T */