diff options
author | Panu Matilainen <pmatilai@redhat.com> | 2007-07-10 12:15:43 +0300 |
---|---|---|
committer | Panu Matilainen <pmatilai@redhat.com> | 2007-07-10 12:15:43 +0300 |
commit | 049674696d7f495ddf4faa4e0327712870f603ab (patch) | |
tree | 844214d9c5a83304aae9320fb6f3f58f4f5395ce /build | |
parent | f64a1a327bfb443fea6ed766be40547c855d27a0 (diff) | |
download | rpm-049674696d7f495ddf4faa4e0327712870f603ab.tar.gz rpm-049674696d7f495ddf4faa4e0327712870f603ab.tar.bz2 rpm-049674696d7f495ddf4faa4e0327712870f603ab.zip |
Remove const type-qualifiers from function return types everywhere.
They're meaningless in C and cause tonne of build warnings.
Diffstat (limited to 'build')
-rw-r--r-- | build/names.c | 4 | ||||
-rw-r--r-- | build/rpmbuild.h | 4 |
2 files changed, 4 insertions, 4 deletions
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. |