diff options
author | Christophe Grenier <[email protected]> | 2016-06-10 10:15:01 +0200 |
---|---|---|
committer | Christophe Grenier <[email protected]> | 2016-06-10 10:15:01 +0200 |
commit | fc8fb6b6b4a92c5f6f617ca185daa109deb4f469 (patch) | |
tree | df976324e3eb0185dd25aa08b9da3c8d09d25678 /src/pdiskseln.c | |
parent | f1a17e9f5a52dadbbb825864f514090123021c9b (diff) |
Do not declare variable use_sudo if SUDO_BIN is undefined (code style)
Diffstat (limited to 'src/pdiskseln.c')
-rw-r--r-- | src/pdiskseln.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/pdiskseln.c b/src/pdiskseln.c index 3b1c39d2..a396e49f 100644 --- a/src/pdiskseln.c +++ b/src/pdiskseln.c @@ -74,7 +74,9 @@ static int photorec_disk_selection_ncurses(struct ph_param *params, struct ph_op unsigned int menu=0; int offset=0; int pos_num=0; +#ifdef SUDO_BIN int use_sudo=0; +#endif const list_disk_t *element_disk; const list_disk_t *current_disk=list_disk; static const struct MenuItem menuMain[]= @@ -149,6 +151,7 @@ static int photorec_disk_selection_ncurses(struct ph_param *params, struct ph_op wmove(stdscr, INTER_NOTE_Y+3, 0); wprintw(stdscr,"detection, and install the latest OS patches and disk drivers."); } +#ifdef SUDO_BIN if(use_sudo > 0) { if(i<=NBR_DISK_MAX && element_disk==NULL) @@ -157,6 +160,7 @@ static int photorec_disk_selection_ncurses(struct ph_param *params, struct ph_op menu_options="PNOSQ"; } else +#endif { if(i<=NBR_DISK_MAX && element_disk==NULL) menu_options="OQ"; |