Skip to contentSkip to conversation

allow qemu-nbd --version to show the application name dynamically

PATCH New Carlo Marcelo Arenas Belon 1 participant 1 message Jul 16, 2008

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 allow qemu-nbd --version to show the application name dynamically

As used for --help and as it was probably expected by passing argv[0] as a parameter to the version() function.

Carlo
---

qemu-nbd.c +2 -2
Index: qemu-nbd.c
===================================================================
@@ -68,13 +68,13 @@
 static void version(const char *name)
 {
     printf(
-"qemu-nbd version 0.0.1\n"
+"%s version 0.0.1\n"
 "Written by Anthony Liguori.\n"
 "\n"
 "Copyright (C) 2006 Anthony Liguori <[email protected]>.\n"
 "This is free software; see the source for copying conditions.  There is NO\n"
 "warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.\n"
-    );
+    , name);
 }
 
 struct partition_record