Merge pull request #928 from devnexen/va_fn_sig_chang

va little signature change
This commit is contained in:
Yamagi 2022-11-05 09:58:10 +01:00 committed by GitHub
commit 96aafef55a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 3 deletions

View file

@ -344,7 +344,7 @@ float BigFloat(float l);
float LittleFloat(float l);
void Swap_Init(void);
char *va(char *format, ...) PRINTF_ATTR(1, 2);
char *va(const char *format, ...) PRINTF_ATTR(1, 2);
/* ============================================= */

View file

@ -904,7 +904,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];

View file

@ -56,7 +56,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 ) ;