Constify format string in DisplayRealTimeString (fixes warnings).

This commit is contained in:
Darren Salt 2017-08-27 22:25:54 +01:00
parent 50df362ef8
commit c8fae11e7d
2 changed files with 2 additions and 2 deletions

View file

@ -44,7 +44,7 @@ If you have questions concerning this license or the applicable additional terms
DisplayRealTimeString
============
*/
void DisplayRealTimeString( char* string, ... )
void DisplayRealTimeString( const char* string, ... )
{
va_list argPtr;
char buf[MAX_STRING_CHARS];

View file

@ -46,7 +46,7 @@ If you have questions concerning this license or the applicable additional terms
class idBrush;
class idBrushList;
void DisplayRealTimeString( char* string, ... ) ID_STATIC_ATTRIBUTE_PRINTF( 1, 2 );
void DisplayRealTimeString( const char* string, ... ) ID_STATIC_ATTRIBUTE_PRINTF( 1, 2 );
//===============================================================