From: sh.pi Date: Wed, 26 Jun 2013 13:27:27 +0000 (+0900) Subject: Code bugs're fixed X-Git-Tag: submit/tizen_ivi_release/20140401.030119~15 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fchanges%2F72%2F15272%2F1;p=platform%2Fcore%2Fsystem%2Fsystem-server.git Code bugs're fixed missing_return: Arriving at the end of a function without returning a value. copy_paste_error: "light_handle" in "light_handle = -1" looks like a copy-paste error. Change-Id: Ie4e5b597b06d36e33d21a9e486f73e124747983c Signed-off-by: Krzysztof Sasiak --- diff --git a/src/core/edbus-handler.c b/src/core/edbus-handler.c index 7bdb088..8a937a3 100644 --- a/src/core/edbus-handler.c +++ b/src/core/edbus-handler.c @@ -346,9 +346,11 @@ int register_edbus_watch(DBusMessage *msg) dbus_bus_add_match(conn, match, NULL); _I("%s is watched by dbus!", watch); + + return 0; } -static unregister_edbus_watch_all(void) +static void unregister_edbus_watch_all(void) { char match[256]; Eina_List *n, *next; diff --git a/src/display/lsensor.c b/src/display/lsensor.c index 8efdaa7..fa097e0 100644 --- a/src/display/lsensor.c +++ b/src/display/lsensor.c @@ -149,7 +149,7 @@ static int connect_sfsvc(void) if (sf_state < 0) { _E("accelerometer sensor attach fail"); sf_disconnect(accel_handle); - light_handle = -1; + accel_handle = -1; goto error; }