From ce3b63f9d8a5ac100b4bf9f4cc9089c8a8f8002a Mon Sep 17 00:00:00 2001 From: Nicholas Hastings Date: Fri, 1 Aug 2014 07:23:11 -0700 Subject: [PATCH] Fix warnings when using IFileSystem::FPrintf --- public/filesystem.h | 2 +- public/filesystem_passthru.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/public/filesystem.h b/public/filesystem.h index 0029f332..d432c867 100644 --- a/public/filesystem.h +++ b/public/filesystem.h @@ -430,7 +430,7 @@ public: virtual bool EndOfFile( FileHandle_t file ) = 0; virtual char *ReadLine( char *pOutput, int maxChars, FileHandle_t file ) = 0; - virtual int FPrintf( FileHandle_t file, char *pFormat, ... ) = 0; + virtual int FPrintf( FileHandle_t file, const char *pFormat, ... ) = 0; //-------------------------------------------------------- // Dynamic library operations diff --git a/public/filesystem_passthru.h b/public/filesystem_passthru.h index b5c9b19d..b7edc190 100644 --- a/public/filesystem_passthru.h +++ b/public/filesystem_passthru.h @@ -113,7 +113,7 @@ public: virtual bool IsOk( FileHandle_t file ) { return m_pFileSystemPassThru->IsOk( file ); } virtual bool EndOfFile( FileHandle_t file ) { return m_pFileSystemPassThru->EndOfFile( file ); } virtual char *ReadLine( char *pOutput, int maxChars, FileHandle_t file ) { return m_pFileSystemPassThru->ReadLine( pOutput, maxChars, file ); } - virtual int FPrintf( FileHandle_t file, char *pFormat, ... ) + virtual int FPrintf( FileHandle_t file, const char *pFormat, ... ) { char _fmt[] = "%s"; char str[8192];