Return the right value on nbd-client -c
authorWouter Verhelst <w@uter.be>
Tue, 27 Jul 2010 22:41:06 +0000 (18:41 -0400)
committerWouter 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

index c98446a..8ba9264 100644 (file)
@@ -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);