projects
/
nbd.git
/ blobdiff
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Return the right value on nbd-client -c
[nbd.git]
/
nbd-client.c
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':
- check_conn(optarg, 1);
- exit(EXIT_SUCCESS);
+ return check_conn(optarg, 1);
case 'd':
disconnect(optarg);
exit(EXIT_SUCCESS);