aboutsummaryrefslogtreecommitdiff
path: root/ubi-utils/src/ubiattach.c
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2010-09-26 17:41:55 -0400
committerArtem Bityutskiy <Artem.Bityutskiy@nokia.com>2010-09-27 09:33:43 +0300
commit9a070eae847df5052fab7692182e078d6c834b44 (patch)
treea51b1abcbfe17ae0371598a66ba324094fd07099 /ubi-utils/src/ubiattach.c
parent2f2362c9321f00ba7d4ff85294c2852c9b716f7d (diff)
ubi-utils: tweak const strings decls
Shrink the data size a little by declaring addresses of constant strings instead of pointers to it. Also slip in static & const on long_options missing them. Signed-off-by: Mike Frysinger <vapier@gentoo.org> Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
Diffstat (limited to 'ubi-utils/src/ubiattach.c')
-rw-r--r--ubi-utils/src/ubiattach.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/ubi-utils/src/ubiattach.c b/ubi-utils/src/ubiattach.c
index 51a0cfb..d2f191b 100644
--- a/ubi-utils/src/ubiattach.c
+++ b/ubi-utils/src/ubiattach.c
@@ -53,10 +53,10 @@ static struct args args = {
.dev = NULL,
};
-static const char *doc = PROGRAM_NAME " version " PROGRAM_VERSION
+static const char doc[] = PROGRAM_NAME " version " PROGRAM_VERSION
" - a tool to attach MTD device to UBI.";
-static const char *optionsstr =
+static const char optionsstr[] =
"-d, --devn=<number> the number to assign to the newly created UBI device\n"
" (assigned automatically if this is not specified)\n"
"-p, --dev-path=<path> path to MTD device node to attach\n"
@@ -67,7 +67,7 @@ static const char *optionsstr =
"-h, --help print help message\n"
"-V, --version print program version";
-static const char *usage =
+static const char usage[] =
"Usage: " PROGRAM_NAME " [<UBI control device node file name>]\n"
"\t[-m <MTD device number>] [-d <UBI device number>] [-p <path to device>]\n"
"\t[--mtdn=<MTD device number>] [--devn=<UBI device number>]\n"