]> www.infradead.org Git - mtd-utils.git/commitdiff
[MTD] UBI: Fixed program versions
authorFrank Haverkamp <haver@vnet.ibm.com>
Fri, 30 Jun 2006 12:28:31 +0000 (14:28 +0200)
committerFrank Haverkamp <haver@vnet.ibm.com>
Tue, 31 Oct 2006 14:06:07 +0000 (15:06 +0100)
ubi-utils/src/ubimkvol.c
ubi-utils/src/ubirmvol.c
ubi-utils/src/ubiupdatevol.c

index d35d2f3e6b82cc23bbb650e948c747cf0e83c7a4..04b7fb5f58d337c5b5faed1cfa42fbbf31c43932 100644 (file)
@@ -39,7 +39,7 @@
 #include <config.h>
 #include <libubi.h>
 
-#define VERSION "1.2"
+#define PROGRAM_VERSION "1.2"
 
 /*
  * The variables below are set by command line arguments.
@@ -70,9 +70,11 @@ static struct args myargs = {
 
 static int param_sanity_check(struct args *args, ubi_lib_t lib);
 static error_t parse_opt(int key, char *optarg, struct argp_state *state);
+
+const char *argp_program_version = PROGRAM_VERSION;
 const char *argp_program_bug_address = PACKAGE_BUGREPORT;
 
-static char doc[] = "\nVersion: " VERSION "\n\t"
+static char doc[] = "\nVersion: " PROGRAM_VERSION "\n\t"
        BUILD_OS" "BUILD_CPU" at "__DATE__" "__TIME__"\n"
        "\nMake UBI Volume.\n";
 
index f810263946ec09ac8acee4fbff993c87eee05b97..43679bc0148a868f852f727176e8fd19eda3c54a 100644 (file)
@@ -36,7 +36,7 @@
 #include <config.h>
 #include <libubi.h>
 
-#define VERSION "1.1"
+#define PROGRAM_VERSION "1.1"
 
 /*
  * The below variables are set by command line options.
@@ -60,9 +60,11 @@ static struct args myargs = {
 
 static int param_sanity_check(struct args *args, ubi_lib_t lib);
 static error_t parse_opt(int key, char *optarg, struct argp_state *state);
+
+const char *argp_program_version = PROGRAM_VERSION;
 const char *argp_program_bug_address = PACKAGE_BUGREPORT;
 
-static char doc[] = "\nVersion: " VERSION "\n\t"
+static char doc[] = "\nVersion: " PROGRAM_VERSION "\n\t"
        BUILD_OS" "BUILD_CPU" at "__DATE__" "__TIME__"\n"
        "\nMake UBI Volume.\n";
 
index fd68dd8865db06f12463d28e523b65982818a2e9..dcb739977b3c155ee9bcb02b9a7ea461208eb9fb 100644 (file)
@@ -41,7 +41,7 @@
 #include <config.h>
 #include <libubi.h>
 
-#define VERSION "1.0"
+#define PROGRAM_VERSION "1.0"
 
 #define MAXPATH                1024
 #define BUFSIZE                128 * 1024
@@ -72,9 +72,10 @@ static struct args myargs = {
 static error_t parse_opt (int key, char *arg, struct argp_state *state);
 
 static int verbose = 0;
+const char *argp_program_version = PROGRAM_VERSION;
 const char *argp_program_bug_address = PACKAGE_BUGREPORT;
 
-static char doc[] = "\nVersion: " VERSION "\n\t"
+static char doc[] = "\nVersion: " PROGRAM_VERSION "\n\t"
        BUILD_OS" "BUILD_CPU" at "__DATE__" "__TIME__"\n"
        "\nWrite to UBI Volume.\n";