Should compile now (fixed typos(?))
authorNathan Heisey <nathanheisey@gmail.com>
Thu, 14 Jul 2011 17:58:47 +0000
changeset 5920 6a9a009f9a5c
parent 5919 e19c4c44f224
child 5921 4cec9ba57dfb
Should compile now (fixed typos(?))
src/power/beos/SDL_syspower.c
src/thread/beos/SDL_systhread.c
--- a/src/power/beos/SDL_syspower.c	Wed Jul 13 09:37:00 2011 +0000
+++ b/src/power/beos/SDL_syspower.c	Thu Jul 14 17:58:47 2011 +0000
@@ -50,7 +50,8 @@
     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 @@
         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 */
         }
     }
 
--- a/src/thread/beos/SDL_systhread.c	Wed Jul 13 09:37:00 2011 +0000
+++ b/src/thread/beos/SDL_systhread.c	Thu Jul 14 17:58:47 2011 +0000
@@ -90,7 +90,7 @@
 }
 
 int
-SDL_SYS_SetThreadPriority(SDL_Thread * thread, SDL_ThreadPriority priority)
+SDL_SYS_SetThreadPriority(SDL_ThreadPriority priority)
 {
     int32 value;