summaryrefslogtreecommitdiff
path: root/ubi-utils/src/ubiupdatevol.c
diff options
context:
space:
mode:
authorJosh Boyer <jwboyer@linux.ibm.com>2006-12-12 09:22:48 +0100
committerFrank Haverkamp <haver@vnet.ibm.com>2006-12-12 09:22:48 +0100
commitd45b87985d5371b2e47458ee0666f7979d5a8c21 (patch)
treea394d48bdc882367e1bf408f8e51ec9936b6819c /ubi-utils/src/ubiupdatevol.c
parentda59698ccf81a1df3a250edb81a91f1b8a3decf0 (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/ubiupdatevol.c')
-rw-r--r--ubi-utils/src/ubiupdatevol.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/ubi-utils/src/ubiupdatevol.c b/ubi-utils/src/ubiupdatevol.c
index 011d532..b3c4bf1 100644
--- a/ubi-utils/src/ubiupdatevol.c
+++ b/ubi-utils/src/ubiupdatevol.c
@@ -24,6 +24,7 @@
*
* 1.0 Reworked the userinterface to use argp.
* 1.1 Removed argp parsing because we want to use uClib.
+ * 1.2 Minor cleanups
*/
#include <errno.h>
@@ -42,16 +43,12 @@
#include <config.h>
#include <libubi.h>
-#define PROGRAM_VERSION "1.1"
+#define PROGRAM_VERSION "1.2"
#define MAXPATH 1024
#define BUFSIZE 128 * 1024
#define MIN(x,y) ((x)<(y)?(x):(y))
-/* FIXME is this not covered by including getopt.h? */
-extern char *optarg;
-extern int optind;
-
struct args {
int devn;
int vol_id;