From 02a1a14375a680ba35aab3f99c0c74f27add48ee Mon Sep 17 00:00:00 2001 From: Wouter Verhelst Date: Tue, 27 Jul 2010 18:41:06 -0400 Subject: [PATCH] Return the right value on nbd-client -c command line parsing rewrite accidentally removed this. --- nbd-client.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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); -- 1.7.10.4