From: Jean-Philippe Orsini Date: Wed, 24 Sep 2014 07:21:28 +0000 (+0200) Subject: avoid to return void value X-Git-Tag: v1.2.0~160 X-Git-Url: https://git.wpitchoune.net/gitweb/?p=psensor.git;a=commitdiff_plain;h=b672eb851bac54e9e1efbe8b23bd9408dc7ba966 avoid to return void value --- diff --git a/src/cfg.c b/src/cfg.c index 2d44794..3f140d9 100644 --- a/src/cfg.c +++ b/src/cfg.c @@ -724,9 +724,9 @@ bool config_is_appindicator_enabled(const char *sid) void config_set_appindicator_enabled(const char *sid, bool enabled) { - return sensor_set_bool(sid, - ATT_SENSOR_APPINDICATOR_MENU_DISABLED, - !enabled); + sensor_set_bool(sid, + ATT_SENSOR_APPINDICATOR_MENU_DISABLED, + !enabled); } int config_get_sensor_position(const char *sid) @@ -736,7 +736,7 @@ int config_get_sensor_position(const char *sid) void config_set_sensor_position(const char *sid, int pos) { - return sensor_set_int(sid, ATT_SENSOR_POSITION, pos); + sensor_set_int(sid, ATT_SENSOR_POSITION, pos); } bool config_get_sensor_alarm_enabled(const char *sid)