fdisk: fix "type qualifiers ignored on function return type"

Signed-off-by: Karel Zak <kzak@redhat.com>
This commit is contained in:
Karel Zak 2007-05-30 17:41:14 +02:00
parent be97c5f361
commit bf8df99191
2 changed files with 2 additions and 2 deletions

View File

@ -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");

View File

@ -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);