Export find() declaration for the following patches
authorDmitry Kasatkin <d.kasatkin@samsung.com>
Thu, 16 Jan 2014 13:11:41 +0000 (15:11 +0200)
committerDmitry Kasatkin <d.kasatkin@samsung.com>
Fri, 17 Jan 2014 12:56:19 +0000 (14:56 +0200)
Signed-off-by: Dmitry Kasatkin <d.kasatkin@samsung.com>
src/evmctl.c

index 9be5e8b..dff4a45 100644 (file)
@@ -264,6 +264,16 @@ static int x509;
 static int user_sig_type;
 static char *keyfile;
 static char *de_type;
+static dev_t fs_dev;
+
+typedef int (*find_cb_t)(const char *path);
+static int find(const char *path, int dts, find_cb_t func);
+
+#define REG_MASK       (1 << DT_REG)
+#define DIR_MASK       (1 << DT_DIR)
+#define LNK_MASK       (1 << DT_LNK)
+#define CHR_MASK       (1 << DT_CHR)
+#define BLK_MASK       (1 << DT_BLK)
 
 typedef int (*sign_hash_fn_t)(const char *algo, const unsigned char *hash, int size, const char *keyfile, unsigned char *sig);
 
@@ -1585,8 +1595,6 @@ static int cmd_hmac_evm(struct command *cmd)
        return hmac_evm(file, "/etc/keys/evm-key-plain");
 }
 
-typedef int (*find_cb_t)(const char *path);
-
 static int ima_fix(const char *path)
 {
        int fd, size, len, ima = 0, evm = 0;
@@ -1625,14 +1633,6 @@ static int ima_fix(const char *path)
        return 0;
 }
 
-#define REG_MASK       (1 << DT_REG)
-#define DIR_MASK       (1 << DT_DIR)
-#define LNK_MASK       (1 << DT_LNK)
-#define CHR_MASK       (1 << DT_CHR)
-#define BLK_MASK       (1 << DT_BLK)
-
-static dev_t fs_dev;
-
 static int find(const char *path, int dts, find_cb_t func)
 {
        struct dirent *de;