aboutsummaryrefslogtreecommitdiff
path: root/util-linux/fdisk_osf.c
diff options
context:
space:
mode:
authorDenis Vlasenko <vda.linux@googlemail.com>2007-01-29 22:51:44 +0000
committerDenis Vlasenko <vda.linux@googlemail.com>2007-01-29 22:51:44 +0000
commit06c0a71d2315756db874e98bc4f760ca3283b6a6 (patch)
treedf385c84041f3fd8328e7a50caef4495ef2734a8 /util-linux/fdisk_osf.c
parentb6aae0f38194cd39960a898606ee65d4be93a895 (diff)
downloadbusybox-w32-06c0a71d2315756db874e98bc4f760ca3283b6a6.tar.gz
busybox-w32-06c0a71d2315756db874e98bc4f760ca3283b6a6.tar.bz2
busybox-w32-06c0a71d2315756db874e98bc4f760ca3283b6a6.zip
preparatory patch for -Wwrite-strings #3
Diffstat (limited to 'util-linux/fdisk_osf.c')
-rw-r--r--util-linux/fdisk_osf.c8
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)
630} 630}
631 631
632static int 632static int
633edit_int(int def, char *mesg) 633edit_int(int def, const char *mesg)
634{ 634{
635 mesg = xasprintf("%s (%d): ", mesg, def); 635 mesg = xasprintf("%s (%d): ", mesg, def);
636 do { 636 do {
@@ -639,7 +639,7 @@ edit_int(int def, char *mesg)
639 } while (!isdigit(*line_ptr)); 639 } while (!isdigit(*line_ptr));
640 def = atoi(line_ptr); 640 def = atoi(line_ptr);
641 ret: 641 ret:
642 free(mesg); 642 free((char*)mesg);
643 return def; 643 return def;
644} 644}
645 645
@@ -707,9 +707,9 @@ sync_disks(void)
707static void 707static void
708xbsd_write_bootstrap(void) 708xbsd_write_bootstrap(void)
709{ 709{
710 char *bootdir = BSD_LINUX_BOOTDIR;
711 char path[MAXPATHLEN]; 710 char path[MAXPATHLEN];
712 char *dkbasename; 711 const char *bootdir = BSD_LINUX_BOOTDIR;
712 const char *dkbasename;
713 struct xbsd_disklabel dl; 713 struct xbsd_disklabel dl;
714 char *d, *p, *e; 714 char *d, *p, *e;
715 int sector; 715 int sector;