summaryrefslogtreecommitdiffstats
path: root/src/chgtypen.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/chgtypen.c')
-rw-r--r--src/chgtypen.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/chgtypen.c b/src/chgtypen.c
index daf748b..4689f3b 100644
--- a/src/chgtypen.c
+++ b/src/chgtypen.c
@@ -112,7 +112,7 @@ static void change_part_type_int_ncurses(const disk_t *disk_car, partition_t *pa
wclrtoeol(stdscr);
wprintw(stdscr,"New partition type [current %02x] ? ",partition->arch->get_part_type(partition));
if (get_string(stdscr, response, sizeof(response), NULL) > 0) {
- int tmp_val = strtol(response, NULL, 16);
+ const int tmp_val = strtol(response, NULL, 16);
partition->arch->set_part_type(partition,tmp_val);
}
}