From 17950fec3ef00e44deca4598d6f9760201255116 Mon Sep 17 00:00:00 2001 From: Alibek Omarov Date: Tue, 16 Jul 2024 15:18:14 +0300 Subject: [PATCH] filesystem: make engfuncs const --- engine/common/filesystem_engine.c | 2 +- filesystem/filesystem.c | 2 +- filesystem/filesystem.h | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/engine/common/filesystem_engine.c b/engine/common/filesystem_engine.c index c1c99a30..cad1e6b5 100644 --- a/engine/common/filesystem_engine.c +++ b/engine/common/filesystem_engine.c @@ -59,7 +59,7 @@ static void FS_Path_f_( void ) FS_Path_f(); } -static fs_interface_t fs_memfuncs = +static const fs_interface_t fs_memfuncs = { Con_Printf, Con_DPrintf, diff --git a/filesystem/filesystem.c b/filesystem/filesystem.c index c7f82d29..0fc17861 100644 --- a/filesystem/filesystem.c +++ b/filesystem/filesystem.c @@ -2951,7 +2951,7 @@ fs_interface_t g_engfuncs = Sys_GetNativeObject_stub }; -static qboolean FS_InitInterface( int version, fs_interface_t *engfuncs ) +static qboolean FS_InitInterface( int version, const fs_interface_t *engfuncs ) { // to be extended in future interface revisions if( version != FS_API_VERSION ) diff --git a/filesystem/filesystem.h b/filesystem/filesystem.h index c3c9206f..57d1abc2 100644 --- a/filesystem/filesystem.h +++ b/filesystem/filesystem.h @@ -221,7 +221,7 @@ typedef struct fs_interface_t void *(*_Sys_GetNativeObject)( const char *object ); } fs_interface_t; -typedef int (*FSAPI)( int version, fs_api_t *api, fs_globals_t **globals, fs_interface_t *interface ); +typedef int (*FSAPI)( int version, fs_api_t *api, fs_globals_t **globals, const fs_interface_t *interface ); #define GET_FS_API "GetFSAPI" #ifdef __cplusplus