diff options
author | Artem Bityutskiy <Artem.Bityutskiy@nokia.com> | 2007-12-22 17:32:19 +0200 |
---|---|---|
committer | Artem Bityutskiy <Artem.Bityutskiy@nokia.com> | 2007-12-22 17:50:12 +0200 |
commit | 8a8e8101d50ed702d6c45959c8b3f71fdb1e811f (patch) | |
tree | cc206cf63d285be98e8dc88f51c911ccbadda7ac /ubi-utils/src/ubirmvol.c | |
parent | c036f9958b3719a949999ca4fe9866ba56b3f713 (diff) |
ubi-utils: fixes and cleanups
This patch fixes a libubi bug and does some random minor cleanups.
Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
Diffstat (limited to 'ubi-utils/src/ubirmvol.c')
-rw-r--r-- | ubi-utils/src/ubirmvol.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/ubi-utils/src/ubirmvol.c b/ubi-utils/src/ubirmvol.c index e9a1b41..10ce617 100644 --- a/ubi-utils/src/ubirmvol.c +++ b/ubi-utils/src/ubirmvol.c @@ -19,7 +19,7 @@ /* * An utility to remove UBI volumes. * - * Authors: Artem B. Bityutskiy <dedekind@infradead.org> + * Authors: Artem Bityutskiy <dedekind@infradead.org> * Frank Haverkamp <haver@vnet.ibm.com> */ @@ -68,10 +68,9 @@ static const struct option long_options[] = { static int parse_opt(int argc, char * const argv[], struct args *args) { - char *endp; - while (1) { int key; + char *endp; key = getopt_long(argc, argv, "n:hV", long_options, NULL); if (key == -1) |