From: Felix Fietkau Date: Fri, 4 Feb 2011 23:02:22 +0000 (+0100) Subject: cli: return the ubus ret code X-Git-Url: http://git.archive.openwrt.org/?p=project%2Fubus.git;a=commitdiff_plain;h=f0d75430d26fe8305c2b80f9738923778b3c7415 cli: return the ubus ret code --- diff --git a/cli.c b/cli.c index 54db4a2..c0521fa 100644 --- a/cli.c +++ b/cli.c @@ -78,5 +78,5 @@ int main(int argc, char **argv) fprintf(stderr, "Failed: %s\n", ubus_strerror(ret)); ubus_free(ctx); - return 0; + return ret; }