summaryrefslogtreecommitdiff
path: root/fdisk
diff options
context:
space:
mode:
authorKarel Zak <kzak@redhat.com>2007-05-30 17:41:14 +0200
committerKarel Zak <kzak@redhat.com>2007-05-31 15:02:13 +0200
commitbf8df99191b726332b5c2f361cac27fe2fa85df8 (patch)
tree6d8adf89db90af14a3c88153fecc930be7f8b19b /fdisk
parentbe97c5f361eafdcbfe844b0d9ebb93ad893be1e3 (diff)
downloadutil-linux-old-bf8df99191b726332b5c2f361cac27fe2fa85df8.tar.gz
fdisk: fix "type qualifiers ignored on function return type"
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'fdisk')
-rw-r--r--fdisk/fdisk.c2
-rw-r--r--fdisk/fdisk.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/fdisk/fdisk.c b/fdisk/fdisk.c
index 1d1de5bd..abc0e110 100644
--- a/fdisk/fdisk.c
+++ b/fdisk/fdisk.c
@@ -1253,7 +1253,7 @@ get_nonexisting_partition(int warn, int max) {
return get_partition(warn, max);
}
-char * const
+const char *
str_units(int n) { /* n==1: use singular */
if (n == 1)
return display_in_cyl_units ? _("cylinder") : _("sector");
diff --git a/fdisk/fdisk.h b/fdisk/fdisk.h
index 963ef053..48e03f52 100644
--- a/fdisk/fdisk.h
+++ b/fdisk/fdisk.h
@@ -79,7 +79,7 @@ extern unsigned int read_int(unsigned int low, unsigned int dflt,
#define PLURAL 0
#define SINGULAR 1
-extern char *const str_units(int);
+extern const char * str_units(int);
extern unsigned long long get_start_sect(struct partition *p);
extern unsigned long long get_nr_sects(struct partition *p);