Now, make getStringBuf() return const char * for correctness sake

This commit is contained in:
Panu Matilainen 2010-10-28 11:48:49 +03:00
parent 3418a1078f
commit b3c6d5a395
2 changed files with 2 additions and 2 deletions

View File

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

View File

@ -98,7 +98,7 @@ void truncStringBuf(StringBuf sb);
/** \ingroup rpmstring
*/
RPM_GNUC_INTERNAL
char * getStringBuf(StringBuf sb);
const char * getStringBuf(StringBuf sb);
/** \ingroup rpmstring
*/