From a8fdcd30a54ae2bceb964e4f760fc872497fd7e2 Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Sat, 7 May 2011 04:31:43 -0700 Subject: Some minor cleanups --- Alc/ALc.c | 2 +- Alc/ALu.c | 12 ++++++------ OpenAL32/Include/alMain.h | 1 - 3 files changed, 7 insertions(+), 8 deletions(-) diff --git a/Alc/ALc.c b/Alc/ALc.c index f3096b73..35dcd25d 100644 --- a/Alc/ALc.c +++ b/Alc/ALc.c @@ -671,7 +671,7 @@ void al_print(const char *fname, unsigned int line, const char *fmt, ...) int i; fn = strrchr(fname, '/'); - if(!fn) fn = strrchr(fname, '\\');; + if(!fn) fn = strrchr(fname, '\\'); if(!fn) fn = fname; else fn += 1; diff --git a/Alc/ALu.c b/Alc/ALu.c index dc37bcfa..831c245a 100644 --- a/Alc/ALu.c +++ b/Alc/ALu.c @@ -997,7 +997,7 @@ DECL_TEMPLATE(ALbyte, StereoChans,2, aluF2B) #undef DECL_TEMPLATE -#define DECL_TEMPLATE(T, func) \ +#define DECL_TEMPLATE(T) \ static void Write_##T(ALCdevice *device, T *buffer, ALuint SamplesToDo) \ { \ switch(device->FmtChans) \ @@ -1023,11 +1023,11 @@ static void Write_##T(ALCdevice *device, T *buffer, ALuint SamplesToDo) \ } \ } -DECL_TEMPLATE(ALfloat, aluF2F) -DECL_TEMPLATE(ALushort, aluF2US) -DECL_TEMPLATE(ALshort, aluF2S) -DECL_TEMPLATE(ALubyte, aluF2UB) -DECL_TEMPLATE(ALbyte, aluF2B) +DECL_TEMPLATE(ALfloat) +DECL_TEMPLATE(ALushort) +DECL_TEMPLATE(ALshort) +DECL_TEMPLATE(ALubyte) +DECL_TEMPLATE(ALbyte) #undef DECL_TEMPLATE diff --git a/OpenAL32/Include/alMain.h b/OpenAL32/Include/alMain.h index ec51eb44..2e6907e6 100644 --- a/OpenAL32/Include/alMain.h +++ b/OpenAL32/Include/alMain.h @@ -244,7 +244,6 @@ static __inline void InitializeCriticalSection(CRITICAL_SECTION *cs) pthread_mutexattr_destroy(&attrib); } - static __inline void DeleteCriticalSection(CRITICAL_SECTION *cs) { int ret; -- cgit v1.2.3