added needClear flag to take care of initial window clear and window resize clears
[freeglut] / src / freeglut_joystick.c
index 5174c7b..1c0e321 100644 (file)
@@ -57,7 +57,7 @@
 #   include <unistd.h>
 #   include <fcntl.h>
 #   ifdef __FreeBSD__
-#       include <machine/joystick.h>
+#       include <sys/joystick.h>
 #       define JS_DATA_TYPE joystick
 #       define JS_RETURN (sizeof(struct JS_DATA_TYPE))
 #   elif defined(__linux__)
@@ -247,7 +247,7 @@ static void fghJoystickRawRead ( SFG_Joystick* joy, int* buttons, float* axes )
 
     if( status != JS_RETURN )
     {
-        fgWarning( joy->fname );
+        fgWarning( "%s", joy->fname );
         joy->error = TRUE;
         return;
     }