r33: use PACKAGE_VERSION to determine what version we are (and output that
authoryoe <yoe>
Thu, 21 Aug 2003 13:31:56 +0000 (13:31 +0000)
committeryoe <yoe>
Thu, 21 Aug 2003 13:31:56 +0000 (13:31 +0000)
in the usage message). Did that in nbd-server too, but forgot to tell
that in the CVS message :-)

nbd-client.c

index e9c08c2..379a3bd 100644 (file)
@@ -72,6 +72,7 @@ int main(int argc, char *argv[])
 
        if (argc < 3) {
        errmsg:
+               fprintf(stderr, "nbd-client version %s\n", PACKAGE_VERSION);
                fprintf(stderr, "Usage: nbd-client [bs=blocksize] host port nbd_device [-swap]\n");
                fprintf(stderr, "Or   : nbd-client -d nbd_device\n");
                fprintf(stderr, "Default value for blocksize is 1024 (recommended for ethernet)\n");