shithub: choc

Download patch

ref: 81e83adb1477346a9af6f9b04bc67d6c60b4e804
parent: 57421ae3e105f8f321144b2fad80a55b73475269
author: Turo Lamminen <[email protected]>
date: Tue Aug 7 13:52:57 EDT 2018

hexen: Make SV_Write buffer parameter const

--- a/src/hexen/sv_save.c
+++ b/src/hexen/sv_save.c
@@ -128,7 +128,7 @@
 static uint16_t SV_ReadWord(void);
 static uint32_t SV_ReadLong(void);
 static void *SV_ReadPtr(void);
-static void SV_Write(void *buffer, int size);
+static void SV_Write(const void *buffer, int size);
 static void SV_WriteByte(byte val);
 static void SV_WriteWord(unsigned short val);
 static void SV_WriteLong(unsigned int val);
@@ -3422,7 +3422,7 @@
 //
 //==========================================================================
 
-static void SV_Write(void *buffer, int size)
+static void SV_Write(const void *buffer, int size)
 {
     fwrite(buffer, size, 1, SavingFP);
 }