diff options
author | Felix Fietkau <nbd@openwrt.org> | 2013-06-10 17:08:26 +0200 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2013-06-10 17:08:26 +0200 |
commit | 4ab698d5b6e27dece939c858aae070f5beda71a1 (patch) | |
tree | cf7ce252227b1d0e0a58550509e4d702fb935b6d | |
parent | 42a664f5d9d6f725f8925a7e870b5df8d544a985 (diff) |
make uqmi_add_error return QMI_CMD_EXIT
-rw-r--r-- | commands.c | 3 | ||||
-rw-r--r-- | commands.h | 2 |
2 files changed, 3 insertions, 2 deletions
@@ -181,9 +181,10 @@ static bool __uqmi_run_commands(struct qmi_dev *qmi, bool option) return true; } -void uqmi_add_error(const char *msg) +int uqmi_add_error(const char *msg) { blobmsg_add_string(&status, NULL, msg); + return QMI_CMD_EXIT; } bool uqmi_run_commands(struct qmi_dev *qmi) @@ -50,6 +50,6 @@ extern bool single_line; extern const struct uqmi_cmd_handler uqmi_cmd_handler[]; void uqmi_add_command(char *arg, int longidx); bool uqmi_run_commands(struct qmi_dev *qmi); -void uqmi_add_error(const char *msg); +int uqmi_add_error(const char *msg); #endif |