Commit 107dfa2e authored by Mimi Zohar's avatar Mimi Zohar

encrypted-keys: fix Opt_err/Opt_error = -1

Properly start the enumeration associated with match_table_t at zero,
making Opt_err/Opt_error the last enumeration value.
Signed-off-by: default avatarMimi Zohar <zohar@linux.ibm.com>
parent 278311e4
......@@ -60,11 +60,11 @@ static int blksize;
static struct crypto_shash *hash_tfm;
enum {
Opt_err = -1, Opt_new, Opt_load, Opt_update
Opt_new, Opt_load, Opt_update, Opt_err
};
enum {
Opt_error = -1, Opt_default, Opt_ecryptfs, Opt_enc32
Opt_default, Opt_ecryptfs, Opt_enc32, Opt_error
};
static const match_table_t key_format_tokens = {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment