Now, make getStringBuf() return const char * for correctness sake
This commit is contained in:
parent
3418a1078f
commit
b3c6d5a395
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -98,7 +98,7 @@ void truncStringBuf(StringBuf sb);
|
|||
/** \ingroup rpmstring
|
||||
*/
|
||||
RPM_GNUC_INTERNAL
|
||||
char * getStringBuf(StringBuf sb);
|
||||
const char * getStringBuf(StringBuf sb);
|
||||
|
||||
/** \ingroup rpmstring
|
||||
*/
|
||||
|
|
Loading…
Reference in New Issue