make uqmi_add_error return QMI_CMD_EXIT
authorFelix Fietkau <nbd@openwrt.org>
Mon, 10 Jun 2013 15:08:26 +0000 (17:08 +0200)
committerFelix Fietkau <nbd@openwrt.org>
Mon, 10 Jun 2013 15:08:26 +0000 (17:08 +0200)
commands.c
commands.h

index 4dbdd17..4680511 100644 (file)
@@ -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)
index b54b34f..7560dbd 100644 (file)
@@ -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