projects
/
oweals
/
uci.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5b6e963
)
cli: do not return 0 if the command was invalid
author
Felix Fietkau
<nbd@openwrt.org>
Sat, 2 Apr 2011 13:44:34 +0000
(15:44 +0200)
committer
Felix Fietkau
<nbd@openwrt.org>
Sat, 2 Apr 2011 13:44:34 +0000
(15:44 +0200)
cli.c
patch
|
blob
|
history
diff --git
a/cli.c
b/cli.c
index 0e98aa7f5e5b7bc59a5ba149d5cda2a230b7b4e1..b660273f96b397023e5f62ce3e45e329adeb1a0d 100644
(file)
--- a/
cli.c
+++ b/
cli.c
@@
-687,10
+687,9
@@
int main(int argc, char **argv)
ret = uci_cmd(argc - 1, argv + 1);
if (input != stdin)
fclose(input);
- if (ret == 255) {
+
+ if (ret == 255)
uci_usage();
- return 0;
- }
uci_free_context(ctx);