From: Karel Zak Date: Wed, 30 May 2007 15:41:14 +0000 (+0200) Subject: fdisk: fix "type qualifiers ignored on function return type" X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bf8df99191b726332b5c2f361cac27fe2fa85df8;p=util-linux fdisk: fix "type qualifiers ignored on function return type" Signed-off-by: Karel Zak --- 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);