shithub: duke3d

Download patch

ref: c11b0e1bad9be37d91d0d8682a6b1df07abd1e87
parent: f97ddbe7aaa555c615ae26816a3617db55837399
author: Tanguy Fautre <tanguy@fautre.com>
date: Sat Feb 22 09:26:03 EST 2020

Fixing warnings

--- a/Game/src/gamedef.c
+++ b/Game/src/gamedef.c
@@ -25,7 +25,7 @@
 //-------------------------------------------------------------------------
 
 #include "duke3d.h"
-
+#include <ctype.h>
 
 extern short otherp;
 
--- a/Game/src/midi/sdl_midi.c
+++ b/Game/src/midi/sdl_midi.c
@@ -6,10 +6,10 @@
 //  Copyright (c) 2012 fabien sanglard. All rights reserved.
 //
 
-#include <stdio.h>
 #include "../audiolib/music.h"
 #include <SDL2/SDL.h>
 #include <SDL2/SDL_mixer.h>
+#include <stdio.h>
 
 /*
  Because the music is stored in a GRP file that is never fully loaded in RAM
@@ -116,7 +116,7 @@
     fileSize = kfilelength( fd );
     if(fileSize >= sizeof(musicDataBuffer))
     {
-        printf("The music '%s' was found but is too big (%dKB)to fit in the buffer (%luKB).\n",songFilename,fileSize/1024,sizeof(musicDataBuffer)/1024);
+        printf("The music '%s' was found but is too big (%dKB)to fit in the buffer (%lluKB).\n",songFilename,fileSize/1024,sizeof(musicDataBuffer)/1024);
         kclose(fd);
         return 0;
     }