summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristophe Grenier <grenier@cgsecurity.org>2013-05-19 11:11:21 +0200
committerChristophe Grenier <grenier@cgsecurity.org>2013-05-19 11:11:21 +0200
commitea952b0cc9d7a732916fc37db13383a0ae31faf7 (patch)
tree1215cf2a025b2b854d7c9610e84e94ad4fd6e53d
parent68509cae8f62089d1cdfe6bcb12beee8f1a49495 (diff)
ppartsel.c: use init_mode_t instead of int type
-rw-r--r--src/ppartsel.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ppartsel.c b/src/ppartsel.c
index e8149b3..5ac1403 100644
--- a/src/ppartsel.c
+++ b/src/ppartsel.c
@@ -57,7 +57,7 @@
extern const arch_fnct_t arch_none;
-enum { INIT_SPACE_WHOLE, INIT_SPACE_PREINIT, INIT_SPACE_EXT2_GROUP, INIT_SPACE_EXT2_INODE };
+typedef enum { INIT_SPACE_WHOLE, INIT_SPACE_PREINIT, INIT_SPACE_EXT2_GROUP, INIT_SPACE_EXT2_INODE } init_mode_t;
static int spacerange_cmp(const struct td_list_head *a, const struct td_list_head *b)
{
@@ -83,7 +83,7 @@ void menu_photorec(struct ph_param *params, struct ph_options *options, alloc_da
unsigned int current_element_num;
unsigned int user_blocksize=0;
int done=0;
- int mode_init_space=(td_list_empty(&list_search_space->list)?INIT_SPACE_WHOLE:INIT_SPACE_PREINIT);
+ init_mode_t mode_init_space=(td_list_empty(&list_search_space->list)?INIT_SPACE_WHOLE:INIT_SPACE_PREINIT);
#ifdef HAVE_NCURSES
int command;
unsigned int offset=0;