[gok] Add missing return value - bgo#584002



commit b1ec9355c79d7ce869ea69ffa998cff3c0b08ec5
Author: Gerd Kohlberger <gerdk src gnome org>
Date:   Thu May 28 09:44:36 2009 +0200

    Add missing return value - bgo#584002
---
 gok/switchapi.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/gok/switchapi.c b/gok/switchapi.c
index c960231..e1c9c73 100644
--- a/gok/switchapi.c
+++ b/gok/switchapi.c
@@ -229,7 +229,7 @@ gint closeSwitchApi()
 * 
 *  
 * 
-* returns: Always TRUE to continue watching
+* returns: TRUE to continue watching
 **/ 
 #ifdef __linux__
 static gboolean
@@ -243,7 +243,7 @@ joystick_event (GIOChannel *channel, GIOCondition condition, gpointer data)
 	if (joydata == 0) 
 	{ 
 		gok_log_x ("Warning: Improper callback registration, %u, in joystick_event\n", __LINE__); 
-		return; 
+		return FALSE;
 	} 
  
 	readrc = read (joydata->joystickfd, &js, sizeof(struct js_event)); 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]