From bf8df99191b726332b5c2f361cac27fe2fa85df8 Mon Sep 17 00:00:00 2001 From: Karel Zak Date: Wed, 30 May 2007 17:41:14 +0200 Subject: [PATCH] fdisk: fix "type qualifiers ignored on function return type" Signed-off-by: Karel Zak --- fdisk/fdisk.c | 2 +- fdisk/fdisk.h | 2 +- 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); -- 2.39.5