summaryrefslogtreecommitdiff
path: root/build
diff options
context:
space:
mode:
authorPanu Matilainen <pmatilai@redhat.com>2010-10-28 11:48:49 +0300
committerPanu Matilainen <pmatilai@redhat.com>2010-10-28 11:58:02 +0300
commitb3c6d5a39522815f86441dcb2512e2561ecdc711 (patch)
tree639b13f074b6045776c89cc62c05e6ca611b8b48 /build
parent3418a1078f6c43db393ce792969900331729bfad (diff)
downloadrpm-b3c6d5a39522815f86441dcb2512e2561ecdc711.tar.gz
rpm-b3c6d5a39522815f86441dcb2512e2561ecdc711.tar.bz2
rpm-b3c6d5a39522815f86441dcb2512e2561ecdc711.zip
Now, make getStringBuf() return const char * for correctness sake
Diffstat (limited to 'build')
-rw-r--r--build/misc.c2
-rw-r--r--build/rpmbuild_misc.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/build/misc.c b/build/misc.c
index f0732a82b..d03070a6d 100644
--- a/build/misc.c
+++ b/build/misc.c
@@ -57,7 +57,7 @@ void stripTrailingBlanksStringBuf(StringBuf sb)
sb->tail[0] = '\0';
}
-char * getStringBuf(StringBuf sb)
+const char * getStringBuf(StringBuf sb)
{
return (sb != NULL) ? sb->buf : NULL;
}
diff --git a/build/rpmbuild_misc.h b/build/rpmbuild_misc.h
index 9450f13da..e6e865a8c 100644
--- a/build/rpmbuild_misc.h
+++ b/build/rpmbuild_misc.h
@@ -98,7 +98,7 @@ void truncStringBuf(StringBuf sb);
/** \ingroup rpmstring
*/
RPM_GNUC_INTERNAL
-char * getStringBuf(StringBuf sb);
+const char * getStringBuf(StringBuf sb);
/** \ingroup rpmstring
*/