diff options
author | Josh Boyer <jwboyer@linux.ibm.com> | 2006-12-12 09:22:48 +0100 |
---|---|---|
committer | Frank Haverkamp <haver@vnet.ibm.com> | 2006-12-12 09:22:48 +0100 |
commit | d45b87985d5371b2e47458ee0666f7979d5a8c21 (patch) | |
tree | a394d48bdc882367e1bf408f8e51ec9936b6819c /ubi-utils/src/pfiflash.c | |
parent | da59698ccf81a1df3a250edb81a91f1b8a3decf0 (diff) |
[PATCH] Minor ubi utils cleanups
Remove getopt extern declarations
Minor whitespace cleanups
Remove incorrect program names that snuck in during getopt rewrite
Change comments to match reality
Signed-off-by: Josh Boyer <jwboyer@linux.vnet.ibm.com>
Acked-by: Frank Haverkamp <haver@vnet.ibm.com>
Diffstat (limited to 'ubi-utils/src/pfiflash.c')
-rw-r--r-- | ubi-utils/src/pfiflash.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/ubi-utils/src/pfiflash.c b/ubi-utils/src/pfiflash.c index 63487b9..0b0da56 100644 --- a/ubi-utils/src/pfiflash.c +++ b/ubi-utils/src/pfiflash.c @@ -25,6 +25,7 @@ * 1.1 fixed output to stderr and stdout in logfile mode. * 1.2 updated. * 1.3 removed argp parsing to be able to use uClib. + * 1.4 Minor cleanups */ #include <unistd.h> @@ -41,10 +42,7 @@ #include "error.h" #include "config.h" -#define PROGRAM_VERSION "1.3" - -extern char *optarg; -extern int optind; +#define PROGRAM_VERSION "1.4" static char doc[] = "\nVersion: " PROGRAM_VERSION "\n\tBuilt on " BUILD_CPU" "BUILD_OS" at "__DATE__" "__TIME__"\n" @@ -70,7 +68,7 @@ static const char *optionsstr = " -V, --version Print program version\n"; static const char *usage = -"Usage: pfiflash.orig [-cvC?V] [-l <file>] [-p <type>] [-r <dev>] [-s <seqnum>]\n" +"Usage: pfiflash [-cvC?V] [-l <file>] [-p <type>] [-r <dev>] [-s <seqnum>]\n" " [--copyright] [--logfile=<file>] [--verbose] [--complete]\n" " [--pdd-update=<type>] [--raw-flash=<dev>] [--side=<seqnum>]\n" " [--help] [--usage] [--version] [pfifile]\n"; |