From 3766a81c48947109cf1b6606af151b392669c654 Mon Sep 17 00:00:00 2001 From: Rafal Krypa Date: Tue, 31 Dec 2013 16:08:43 +0100 Subject: [PATCH] utils: fix build warnings related to smack_smackfs_path() Signed-off-by: Rafal Krypa --- utils/smackcipso.c | 1 + utils/smackctl.c | 5 ++--- utils/smackload.c | 1 + 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/utils/smackcipso.c b/utils/smackcipso.c index 643f080..a667c3f 100644 --- a/utils/smackcipso.c +++ b/utils/smackcipso.c @@ -22,6 +22,7 @@ #include #include #include +#include int main(int argc, char **argv) { diff --git a/utils/smackctl.c b/utils/smackctl.c index cdfb21d..439c233 100644 --- a/utils/smackctl.c +++ b/utils/smackctl.c @@ -59,9 +59,8 @@ int main(int argc, char **argv) if (clear()) exit(1); } else if (!strcmp(argv[1], "status")) { - if (smack_smackfs_path()) - printf("SmackFS is mounted to %s.\n", - smack_smackfs_path()); + if (tmp) + printf("SmackFS is mounted to %s.\n", tmp); else printf("SmackFS is not mounted.\n"); exit(0); diff --git a/utils/smackload.c b/utils/smackload.c index 04aca44..ecce8cd 100644 --- a/utils/smackload.c +++ b/utils/smackload.c @@ -22,6 +22,7 @@ #include #include #include +#include static void usage(const char *bin) { -- 2.7.4