Commit 9a98231c authored by rswindell's avatar rswindell
Browse files

Fix some newish GCC warnings (e.g. misleading-indentation).

xpbeep.c assumes you have sys/ioctl.h on *nix now. Hope you do, mr. fbsd.
parent 14cf70f6
......@@ -886,7 +886,7 @@ static ulong getdiskspace(const char* path, ulong unit, BOOL freespace)
struct statfs fs;
unsigned long blocks;
if (statfs(path, &fs) < 0)
if(statfs(path, &fs) < 0)
return 0;
if(freespace)
......
......@@ -1810,8 +1810,8 @@ static unsigned parseEnum(const char* value, str_list_t names)
FIND_WHITESPACE(p);
*p=0;
if((count=strListCount(names)) == 0)
return 0;
if((count=strListCount(names)) == 0)
return 0;
/* Look for exact matches first */
for(i=0; i<count; i++)
......@@ -1824,8 +1824,8 @@ static unsigned parseEnum(const char* value, str_list_t names)
return(i);
i=strtoul(val,NULL,0);
if(i>=count)
i=count-1;
if(i>=count)
i=count-1;
return i;
}
......
......@@ -12,6 +12,7 @@
#include <mmsystem.h>
#elif defined(__unix__)
#include <fcntl.h>
#include <sys/ioctl.h>
#if SOUNDCARD_H_IN==1
#include <sys/soundcard.h>
#elif SOUNDCARD_H_IN==2
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment