Просмотр исходного кода

audio/winmm/SDL_winmm.c (SetMMerror): constify.

Ozkan Sezer 4 лет назад
Родитель
Сommit
be7b663c2c
1 измененных файлов с 1 добавлено и 2 удалено
  1. 1 2
      src/audio/winmm/SDL_winmm.c

+ 1 - 2
src/audio/winmm/SDL_winmm.c

@@ -135,7 +135,7 @@ FillSound(HWAVEOUT hwo, UINT uMsg, DWORD_PTR dwInstance,
 }
 
 static int
-SetMMerror(char *function, MMRESULT code)
+SetMMerror(const char *function, MMRESULT code)
 {
     int len;
     char errbuf[MAXERRORLENGTH];
@@ -434,7 +434,6 @@ WINMM_OpenDevice(_THIS, void *handle, const char *devname, int iscapture)
     return 0;                   /* Ready to go! */
 }
 
-
 static int
 WINMM_Init(SDL_AudioDriverImpl * impl)
 {