From: Wouter Verhelst Date: Tue, 27 Jul 2010 22:41:06 +0000 (-0400) Subject: Return the right value on nbd-client -c X-Git-Url: http://git.alex.org.uk Return the right value on nbd-client -c command line parsing rewrite accidentally removed this. --- diff --git a/nbd-client.c b/nbd-client.c index c98446a..8ba9264 100644 --- 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);