From 569fcd280ca1b27e74c7f7e002b22a687edff6b7 Mon Sep 17 00:00:00 2001 From: Nathan Heisey Date: Thu, 14 Jul 2011 17:58:47 +0000 Subject: [PATCH] Should compile now (fixed typos(?)) --- src/power/beos/SDL_syspower.c | 7 +++++-- src/thread/beos/SDL_systhread.c | 2 +- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/src/power/beos/SDL_syspower.c b/src/power/beos/SDL_syspower.c index 547ec47fc..136a01dfb 100644 --- a/src/power/beos/SDL_syspower.c +++ b/src/power/beos/SDL_syspower.c @@ -50,7 +50,8 @@ SDL_GetPowerInfo_BeOS(SDL_PowerState * state, int *seconds, int *percent) uint8 battery_flags; uint8 battery_life; uint32 battery_time; - + int rc; /* FIXME: This was undefined before; not sure what type it is */ + if (fd == -1) { return SDL_FALSE; /* maybe some other method will work? */ } @@ -77,7 +78,9 @@ SDL_GetPowerInfo_BeOS(SDL_PowerState * state, int *seconds, int *percent) if (battery_status == 0xFF) { battery_flags = 0xFF; } else { - battery_flags = (1 << status.battery_status); + battery_flags = (1 << battery_status); /* FIXME: Used to be + status.battery_status, + not sure why */ } } diff --git a/src/thread/beos/SDL_systhread.c b/src/thread/beos/SDL_systhread.c index 799513153..5f49d8734 100644 --- a/src/thread/beos/SDL_systhread.c +++ b/src/thread/beos/SDL_systhread.c @@ -90,7 +90,7 @@ SDL_ThreadID(void) } int -SDL_SYS_SetThreadPriority(SDL_Thread * thread, SDL_ThreadPriority priority) +SDL_SYS_SetThreadPriority(SDL_ThreadPriority priority) { int32 value;