diff options
Diffstat (limited to 'util-linux/fdisk_osf.c')
-rw-r--r-- | util-linux/fdisk_osf.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/util-linux/fdisk_osf.c b/util-linux/fdisk_osf.c index 3f56bd27d..2555c2e7b 100644 --- a/util-linux/fdisk_osf.c +++ b/util-linux/fdisk_osf.c @@ -630,7 +630,7 @@ xbsd_create_disklabel(void) } static int -edit_int(int def, char *mesg) +edit_int(int def, const char *mesg) { mesg = xasprintf("%s (%d): ", mesg, def); do { @@ -639,7 +639,7 @@ edit_int(int def, char *mesg) } while (!isdigit(*line_ptr)); def = atoi(line_ptr); ret: - free(mesg); + free((char*)mesg); return def; } @@ -707,9 +707,9 @@ sync_disks(void) static void xbsd_write_bootstrap(void) { - char *bootdir = BSD_LINUX_BOOTDIR; char path[MAXPATHLEN]; - char *dkbasename; + const char *bootdir = BSD_LINUX_BOOTDIR; + const char *dkbasename; struct xbsd_disklabel dl; char *d, *p, *e; int sector; |