projects
/
oweals
/
uqmi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
42a664f
)
make uqmi_add_error return QMI_CMD_EXIT
author
Felix Fietkau
<nbd@openwrt.org>
Mon, 10 Jun 2013 15:08:26 +0000
(17:08 +0200)
committer
Felix Fietkau
<nbd@openwrt.org>
Mon, 10 Jun 2013 15:08:26 +0000
(17:08 +0200)
commands.c
patch
|
blob
|
history
commands.h
patch
|
blob
|
history
diff --git
a/commands.c
b/commands.c
index 4dbdd174137d8763776d3e29efc15d9f77e7f2ab..468051156c4abaa93d9017dd28a83ed223ce5dec 100644
(file)
--- a/
commands.c
+++ b/
commands.c
@@
-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)
diff --git
a/commands.h
b/commands.h
index b54b34ff80023e48bc6c3a5b36093dea7baa25e1..7560dbdbdeac0dd44812d6ce8b77dfe0bdeb33d4 100644
(file)
--- a/
commands.h
+++ b/
commands.h
@@
-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