diff options
author | Kay Sievers <kay.sievers@vrfy.org> | 2009-03-11 13:32:39 +0100 |
---|---|---|
committer | Kay Sievers <kay.sievers@vrfy.org> | 2009-03-11 13:32:39 +0100 |
commit | 89d080c3aedacadfb0b1022e101957998d4cdaf1 (patch) | |
tree | 9566b5cebee4ccf3158837e28d613c7201b32e14 /udev/lib | |
parent | b2fbf53a081539c8ade6759f1df7d8953f76dc8d (diff) |
libudev: ctrl - return error after sending ctrl message
Diffstat (limited to 'udev/lib')
-rw-r--r-- | udev/lib/libudev-ctrl.c | 18 |
1 files changed, 6 insertions, 12 deletions
diff --git a/udev/lib/libudev-ctrl.c b/udev/lib/libudev-ctrl.c index caf0dc08a3..570e91c89e 100644 --- a/udev/lib/libudev-ctrl.c +++ b/udev/lib/libudev-ctrl.c @@ -168,38 +168,32 @@ static int ctrl_send(struct udev_ctrl *uctrl, enum udev_ctrl_msg_type type, int int udev_ctrl_send_set_log_level(struct udev_ctrl *uctrl, int priority) { - ctrl_send(uctrl, UDEV_CTRL_SET_LOG_LEVEL, priority, NULL); - return 0; + return ctrl_send(uctrl, UDEV_CTRL_SET_LOG_LEVEL, priority, NULL); } int udev_ctrl_send_stop_exec_queue(struct udev_ctrl *uctrl) { - ctrl_send(uctrl, UDEV_CTRL_STOP_EXEC_QUEUE, 0, NULL); - return 0; + return ctrl_send(uctrl, UDEV_CTRL_STOP_EXEC_QUEUE, 0, NULL); } int udev_ctrl_send_start_exec_queue(struct udev_ctrl *uctrl) { - ctrl_send(uctrl, UDEV_CTRL_START_EXEC_QUEUE, 0, NULL); - return 0; + return ctrl_send(uctrl, UDEV_CTRL_START_EXEC_QUEUE, 0, NULL); } int udev_ctrl_send_reload_rules(struct udev_ctrl *uctrl) { - ctrl_send(uctrl, UDEV_CTRL_RELOAD_RULES, 0, NULL); - return 0; + return ctrl_send(uctrl, UDEV_CTRL_RELOAD_RULES, 0, NULL); } int udev_ctrl_send_set_env(struct udev_ctrl *uctrl, const char *key) { - ctrl_send(uctrl, UDEV_CTRL_SET_ENV, 0, key); - return 0; + return ctrl_send(uctrl, UDEV_CTRL_SET_ENV, 0, key); } int udev_ctrl_send_set_max_childs(struct udev_ctrl *uctrl, int count) { - ctrl_send(uctrl, UDEV_CTRL_SET_MAX_CHILDS, count, NULL); - return 0; + return ctrl_send(uctrl, UDEV_CTRL_SET_MAX_CHILDS, count, NULL); } struct udev_ctrl_msg *udev_ctrl_receive_msg(struct udev_ctrl *uctrl) |