From 049674696d7f495ddf4faa4e0327712870f603ab Mon Sep 17 00:00:00 2001 From: Panu Matilainen Date: Tue, 10 Jul 2007 12:15:43 +0300 Subject: Remove const type-qualifiers from function return types everywhere. They're meaningless in C and cause tonne of build warnings. --- build/names.c | 4 ++-- build/rpmbuild.h | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'build') diff --git a/build/names.c b/build/names.c index d37591ac2..5ddcad97f 100644 --- a/build/names.c +++ b/build/names.c @@ -205,7 +205,7 @@ gid_t getGidS(const char *gname) } /*@=boundswrite@*/ -int_32 *const getBuildTime(void) +int_32 * getBuildTime(void) { static int_32 buildTime[1]; @@ -217,7 +217,7 @@ int_32 *const getBuildTime(void) } /*@-boundswrite@*/ -const char *const buildHost(void) +const char * buildHost(void) { static char hostname[1024]; static int oneshot = 0; diff --git a/build/rpmbuild.h b/build/rpmbuild.h index 5652ded2b..a33d44265 100644 --- a/build/rpmbuild.h +++ b/build/rpmbuild.h @@ -154,13 +154,13 @@ gid_t getGidS(const char * gname) * Return build hostname. * @return build hostname */ -extern /*@observer@*/ const char * const buildHost(void) /*@*/; +extern /*@observer@*/ const char * buildHost(void) /*@*/; /** \ingroup rpmbuild * Return build time stamp. * @return build time stamp */ -extern /*@observer@*/ int_32 * const getBuildTime(void) /*@*/; +extern /*@observer@*/ int_32 * getBuildTime(void) /*@*/; /** \ingroup rpmbuild * Read next line from spec file. -- cgit v1.2.3