summaryrefslogtreecommitdiffstats
path: root/src/chgtypen.c
diff options
context:
space:
mode:
authorChristophe Grenier <grenier@cgsecurity.org>2013-05-26 09:21:30 +0200
committerChristophe Grenier <grenier@cgsecurity.org>2013-05-26 09:21:30 +0200
commit8ab840414394e1e8454413485c578d75fd8ab68f (patch)
tree4d7cb333d48e5cd71bdcde328db0bff816d8f988 /src/chgtypen.c
parent7ff26a5fcd838b0ac9d6a3a4e82f802d0b752d81 (diff)
Constify some variables
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);
}
}