summaryrefslogtreecommitdiff
path: root/ubi-utils/src
diff options
context:
space:
mode:
authorFrank Haverkamp <haver@vnet.ibm.com>2006-06-30 14:28:31 +0200
committerFrank Haverkamp <haver@vnet.ibm.com>2006-10-31 15:06:07 +0100
commitc474d44341b1ab9b1b39cf2bbf8686a610b54614 (patch)
treed3eeb4260179c6dfef057c631ba8b8608e5d0613 /ubi-utils/src
parentfaa7699bf15b9a08b1b2658745314ae8f63878a2 (diff)
[MTD] UBI: Fixed program versions
Diffstat (limited to 'ubi-utils/src')
-rw-r--r--ubi-utils/src/ubimkvol.c6
-rw-r--r--ubi-utils/src/ubirmvol.c6
-rw-r--r--ubi-utils/src/ubiupdatevol.c5
3 files changed, 11 insertions, 6 deletions
diff --git a/ubi-utils/src/ubimkvol.c b/ubi-utils/src/ubimkvol.c
index d35d2f3..04b7fb5 100644
--- a/ubi-utils/src/ubimkvol.c
+++ b/ubi-utils/src/ubimkvol.c
@@ -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";
diff --git a/ubi-utils/src/ubirmvol.c b/ubi-utils/src/ubirmvol.c
index f810263..43679bc 100644
--- a/ubi-utils/src/ubirmvol.c
+++ b/ubi-utils/src/ubirmvol.c
@@ -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";
diff --git a/ubi-utils/src/ubiupdatevol.c b/ubi-utils/src/ubiupdatevol.c
index fd68dd8..dcb7399 100644
--- a/ubi-utils/src/ubiupdatevol.c
+++ b/ubi-utils/src/ubiupdatevol.c
@@ -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";