From a4747d3d8d7fae741cc63f356928cd7a0ab83d34 Mon Sep 17 00:00:00 2001 From: David CARLIER Date: Sun, 23 Oct 2022 22:27:00 +0100 Subject: [PATCH] va little signature change --- src/header/shared.h | 2 +- src/savegame/tables/gamefunc_decs.h | 2 +- src/shared/shared.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/header/shared.h b/src/header/shared.h index fffb9ba..eeeb329 100644 --- a/src/header/shared.h +++ b/src/header/shared.h @@ -204,7 +204,7 @@ float BigFloat(float l); float LittleFloat(float l); void Swap_Init(void); -char *va(char *format, ...); +char *va(const char *format, ...); /* ============================================= */ diff --git a/src/savegame/tables/gamefunc_decs.h b/src/savegame/tables/gamefunc_decs.h index 93d4635..eb52c9a 100644 --- a/src/savegame/tables/gamefunc_decs.h +++ b/src/savegame/tables/gamefunc_decs.h @@ -34,7 +34,7 @@ extern int Q_strncasecmp ( char * s1 , char * s2 , int n ) ; extern int Q_stricmp ( const char * s1 , const char * s2 ) ; extern void Com_PageInMemory ( byte * buffer , int size ) ; extern char * COM_Parse ( char * * data_p ) ; -extern char * va ( char * format , ... ) ; +extern char * va ( const char * format , ... ) ; extern void Swap_Init ( void ) ; extern float FloatNoSwap ( float f ) ; extern float FloatSwap ( float f ) ; diff --git a/src/shared/shared.c b/src/shared/shared.c index 19090bf..d34a904 100644 --- a/src/shared/shared.c +++ b/src/shared/shared.c @@ -884,7 +884,7 @@ Swap_Init(void) * need to have varargs versions of all text functions. */ char * -va(char *format, ...) +va(const char *format, ...) { va_list argptr; static char string[1024];