projects
/
lttng-tools.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6c9cc2a
)
Fix return code to 0 on success and 1 on error
author
David Goulet
<david.goulet@polymtl.ca>
Sun, 17 Jul 2011 17:04:14 +0000
(13:04 -0400)
committer
David Goulet
<david.goulet@polymtl.ca>
Sun, 17 Jul 2011 17:04:14 +0000
(13:04 -0400)
Signed-off-by: David Goulet <david.goulet@polymtl.ca>
lttng/lttng.c
patch
|
blob
|
blame
|
history
diff --git
a/lttng/lttng.c
b/lttng/lttng.c
index 7c0abfaf211fd42ef309f9bf0eaa47e1ff329a61..77006bc7f63ab11834bb3b6286e8d69f7af58f55 100644
(file)
--- a/
lttng/lttng.c
+++ b/
lttng/lttng.c
@@
-431,13
+431,13
@@
static int parse_args(int argc, char **argv)
if (ret < 0) {
if (ret == -1) {
usage(stderr);
- goto error;
} else {
ERR("%s", lttng_get_readable_code(ret));
}
+ goto error;
}
- return
ret
;
+ return
0
;
error:
return -1;
@@
-464,7
+464,9
@@
int main(int argc, char *argv[])
}
ret = parse_args(argc, argv);
- clean_exit(ret);
+ if (ret < 0) {
+ clean_exit(EXIT_FAILURE);
+ }
return 0;
}
This page took
0.027087 seconds
and
4
git commands to generate.