projects
/
nbd.git
/ commitdiff
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
1c536d3
)
Return the right value on nbd-client -c
author
Wouter Verhelst <w@uter.be>
Tue, 27 Jul 2010 22:41:06 +0000
(18:41 -0400)
committer
Wouter Verhelst <w@uter.be>
Tue, 27 Jul 2010 22:41:06 +0000
(18:41 -0400)
command line parsing rewrite accidentally removed this.
nbd-client.c
patch
|
blob
|
history
diff --git
a/nbd-client.c
b/nbd-client.c
index
c98446a
..
8ba9264
100644
(file)
--- a/
nbd-client.c
+++ b/
nbd-client.c
@@
-331,8
+331,7
@@
int main(int argc, char *argv[]) {
blocksize=(int)strtol(optarg, NULL, 0);
break;
case 'c':
blocksize=(int)strtol(optarg, NULL, 0);
break;
case 'c':
- check_conn(optarg, 1);
- exit(EXIT_SUCCESS);
+ return check_conn(optarg, 1);
case 'd':
disconnect(optarg);
exit(EXIT_SUCCESS);
case 'd':
disconnect(optarg);
exit(EXIT_SUCCESS);