summaryrefslogtreecommitdiff
path: root/ubi-utils/src/ubimirror.c
diff options
context:
space:
mode:
authorFrank Haverkamp <haver@vnet.ibm.com>2006-12-11 14:34:23 +0100
committerFrank Haverkamp <haver@vnet.ibm.com>2006-12-11 14:34:23 +0100
commitda59698ccf81a1df3a250edb81a91f1b8a3decf0 (patch)
tree78354ad7f96128d344ef0bba9e303d424a9f4efa /ubi-utils/src/ubimirror.c
parent1fea122705bfecebf38e57774762663b7cd913d2 (diff)
[MTD] UBI Utils: Tools should have individual version numbers
The tools had a mixture of different version numbers. This is changed now. The internal change to move to remove glibc dependencies should be reflected by an increase of the version number, so that we can react if trouble is seen with the new code. Singed-off-by: Frank Haverkamp <haver@vnet.ibm.com>
Diffstat (limited to 'ubi-utils/src/ubimirror.c')
-rw-r--r--ubi-utils/src/ubimirror.c17
1 files changed, 12 insertions, 5 deletions
diff --git a/ubi-utils/src/ubimirror.c b/ubi-utils/src/ubimirror.c
index 1b1d0be..533a0ee 100644
--- a/ubi-utils/src/ubimirror.c
+++ b/ubi-utils/src/ubimirror.c
@@ -16,6 +16,8 @@
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*
* Author: Oliver Lohmann
+ *
+ * 1.2 Removed argp because we want to use uClibc.
*/
#include <stdio.h>
@@ -32,6 +34,8 @@
#include "example_ubi.h"
#include "ubimirror.h"
+#define PROGRAM_VERSION "1.2"
+
typedef enum action_t {
ACT_NORMAL = 0,
ACT_ARGP_ABORT,
@@ -51,7 +55,7 @@ typedef enum action_t {
extern char *optarg;
extern int optind;
-static char doc[] = "\nVersion: " PACKAGE_VERSION "\n\tBuilt on "
+static char doc[] = "\nVersion: " PROGRAM_VERSION "\n\tBuilt on "
BUILD_CPU" "BUILD_OS" at "__DATE__" "__TIME__"\n"
"\n"
"ubimirror - mirrors ubi volumes.\n";
@@ -122,19 +126,22 @@ parse_opt(int argc, char **argv, myargs *args)
args->side = get_update_side(optarg);
if (args->side < 0) {
err_msg("Unsupported seqnum: %s.\n"
- "Supported seqnums are '0' and '1'\n", optarg);
+ "Supported seqnums are '0' "
+ "and '1'\n", optarg);
ERR_ARGP;
}
break;
case '?': /* help */
- err_msg("Usage: ubimirror [OPTION...] <source> <destination>\n");
+ err_msg("Usage: ubimirror [OPTION...] "
+ "<source> <destination>\n");
err_msg("%s", doc);
err_msg("%s", optionsstr);
- err_msg("\nReport bugs to %s\n", PACKAGE_BUGREPORT);
+ err_msg("\nReport bugs to %s\n",
+ PACKAGE_BUGREPORT);
exit(0);
break;
case 'V':
- err_msg("%s", PACKAGE_VERSION);
+ err_msg("%s", PROGRAM_VERSION);
exit(0);
break;
default: