Fix three compilation warnings.
authorRafal Krypa <r.krypa@samsung.com>
Wed, 9 May 2012 10:07:32 +0000 (12:07 +0200)
committerRafal Krypa <r.krypa@samsung.com>
Wed, 12 Dec 2012 18:35:51 +0000 (19:35 +0100)
utils/smackctl.c
utils/smackd.c

index 56c843c..d489b38 100644 (file)
@@ -64,8 +64,6 @@ static int status(void)
 
 int main(int argc, char **argv)
 {
-       int a;
-
        if (argc < 2) {
                fprintf(stderr, "Usage: %s <action>\n", argv[0]);
                return 1;
index 066e2a7..b7caa4a 100644 (file)
@@ -33,6 +33,7 @@
 #include <string.h>
 #include <sys/inotify.h>
 #include <sys/select.h>
+#include <sys/stat.h>
 
 #define PID_FILE "/var/run/smackd.pid"
 #define BUF_SIZE (4 * (sizeof(struct inotify_event) + NAME_MAX + 1))
@@ -284,7 +285,7 @@ static int monitor(int inotifyFd)
        return select(inotifyFd + 1, &readSet, NULL, NULL, NULL);
 }
 
-void main(int argc, char **argv)
+int main(int argc, char **argv)
 {
        struct sigaction sa;
        int inotify_fd;