From 9a070eae847df5052fab7692182e078d6c834b44 Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Sun, 26 Sep 2010 17:41:55 -0400 Subject: 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 Signed-off-by: Artem Bityutskiy --- ubi-utils/src/ubirsvol.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'ubi-utils/src/ubirsvol.c') diff --git a/ubi-utils/src/ubirsvol.c b/ubi-utils/src/ubirsvol.c index a622ea6..20a1d33 100644 --- a/ubi-utils/src/ubirsvol.c +++ b/ubi-utils/src/ubirsvol.c @@ -51,10 +51,10 @@ static struct args args = { .lebs = -1, }; -static const char *doc = PROGRAM_NAME " version " PROGRAM_VERSION +static const char doc[] = PROGRAM_NAME " version " PROGRAM_VERSION " - a tool to resize UBI volumes."; -static const char *optionsstr = +static const char optionsstr[] = "-n, --vol_id= volume ID to resize\n" "-N, --name= volume name to resize\n" "-s, --size= volume size volume size in bytes, kilobytes (KiB)\n" @@ -65,7 +65,7 @@ static const char *optionsstr = "-V, --version print program version"; -static const char *usage = +static const char usage[] = "Usage: " PROGRAM_NAME " [-n ] [--vol_id=]\n\n" " [-N ] [--name=] [-s ] [-S ] [-h] [--help]\n\n" "Example: " PROGRAM_NAME " /dev/ubi0 -n 1 -s 1MiB resize UBI volume 1 to 1 MiB on\n" -- cgit v1.2.3