summaryrefslogtreecommitdiffstats
path: root/libmount/src/context_mount.c
diff options
context:
space:
mode:
authorKarel Zak2012-02-03 12:35:36 +0100
committerKarel Zak2012-02-03 12:35:36 +0100
commit178537eda9b3a5c40bb62ebdfe4c7a1e9917b58c (patch)
tree367946bef6f576259ec1c98193412978c80d3d43 /libmount/src/context_mount.c
parentfdisk: remove uneecessary code (diff)
downloadkernel-qcow2-util-linux-178537eda9b3a5c40bb62ebdfe4c7a1e9917b58c.tar.gz
kernel-qcow2-util-linux-178537eda9b3a5c40bb62ebdfe4c7a1e9917b58c.tar.xz
kernel-qcow2-util-linux-178537eda9b3a5c40bb62ebdfe4c7a1e9917b58c.zip
libmount: use #ifdef fr selinux specific variables
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'libmount/src/context_mount.c')
-rw-r--r--libmount/src/context_mount.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/libmount/src/context_mount.c b/libmount/src/context_mount.c
index c39d8d45a..d38aa16be 100644
--- a/libmount/src/context_mount.c
+++ b/libmount/src/context_mount.c
@@ -27,12 +27,14 @@
*/
static int fix_optstr(struct libmnt_context *cxt)
{
- int rc = 0, se_rem = 0, se_fix = 0;
+ int rc = 0;
char *next;
char *name, *val;
size_t namesz, valsz;
struct libmnt_fs *fs;
-
+#ifdef HAVE_LIBSELINUX
+ int se_fix = 0, se_rem = 0;
+#endif
assert(cxt);
assert(cxt->fs);
assert((cxt->flags & MNT_FL_MOUNTFLAGS_MERGED));