diff options
author | Denis Vlasenko <vda.linux@googlemail.com> | 2007-01-30 01:51:44 +0300 |
---|---|---|
committer | Denis Vlasenko <vda.linux@googlemail.com> | 2007-01-30 01:51:44 +0300 |
commit | 06c0a71d2315756db874e98bc4f760ca3283b6a6 (patch) | |
tree | df385c84041f3fd8328e7a50caef4495ef2734a8 /util-linux/fdisk_osf.c | |
parent | b6aae0f38194cd39960a898606ee65d4be93a895 (diff) |
preparatory patch for -Wwrite-strings #3
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; |