Merge branch 'master' into names
authorWouter Verhelst <w@uter.be>
Tue, 27 Jul 2010 22:54:37 +0000 (18:54 -0400)
committerWouter Verhelst <w@uter.be>
Tue, 27 Jul 2010 22:54:37 +0000 (18:54 -0400)
nbd-client.8.sgml
nbd-client.c

index 65f0e21..fa30f70 100644 (file)
@@ -87,7 +87,9 @@ manpage.1: manpage.sgml
     either in the kernel, or as a module, you can connect to an NBD
     server and use its exported file through a block special file with
     major mode 43.</para>
-    
+
+    <para>Optionally, long options can also be specified with two
+      leading dashes.</para>
   </refsect1>
   <refsect1>
     <title>OPTIONS</title>
index aeaa231..f7b8e2d 100644 (file)
@@ -384,8 +384,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);