aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEric Andersen <andersen@codepoet.org>2001-04-30 18:08:03 +0000
committerEric Andersen <andersen@codepoet.org>2001-04-30 18:08:03 +0000
commit6f343944548c2e41fde4a376e805bf322a8e01c9 (patch)
tree8f5b3ccff395779f19d57ce35015ce90cc8dd6f7
parent65504ac12cdc4eff0a98fd50fff1a019fbb77f1b (diff)
downloadbusybox-w32-6f343944548c2e41fde4a376e805bf322a8e01c9.tar.gz
busybox-w32-6f343944548c2e41fde4a376e805bf322a8e01c9.tar.bz2
busybox-w32-6f343944548c2e41fde4a376e805bf322a8e01c9.zip
These messages can be .rodata, so make them even more const.
-Erik
-rw-r--r--include/libbb.h26
-rw-r--r--libbb/libbb.h26
-rw-r--r--libbb/messages.c24
3 files changed, 38 insertions, 38 deletions
diff --git a/include/libbb.h b/include/libbb.h
index 0ceb983cd..a53e647d3 100644
--- a/include/libbb.h
+++ b/include/libbb.h
@@ -268,18 +268,18 @@ enum {
268 FILEUTILS_INTERACTIVE = 16 268 FILEUTILS_INTERACTIVE = 16
269}; 269};
270 270
271extern const char *applet_name; 271extern const char * const applet_name;
272extern const char *full_version; 272extern const char * const full_version;
273extern const char *name_too_long; 273extern const char * const name_too_long;
274extern const char *omitting_directory; 274extern const char * const omitting_directory;
275extern const char *not_a_directory; 275extern const char * const not_a_directory;
276extern const char *memory_exhausted; 276extern const char * const memory_exhausted;
277extern const char *invalid_date; 277extern const char * const invalid_date;
278extern const char *invalid_option; 278extern const char * const invalid_option;
279extern const char *io_error; 279extern const char * const io_error;
280extern const char *dash_dash_help; 280extern const char * const dash_dash_help;
281extern const char *write_error; 281extern const char * const write_error;
282extern const char *too_few_args; 282extern const char * const too_few_args;
283extern const char *name_longer_than_foo; 283extern const char * const name_longer_than_foo;
284 284
285#endif /* __LIBBB_H__ */ 285#endif /* __LIBBB_H__ */
diff --git a/libbb/libbb.h b/libbb/libbb.h
index 0ceb983cd..a53e647d3 100644
--- a/libbb/libbb.h
+++ b/libbb/libbb.h
@@ -268,18 +268,18 @@ enum {
268 FILEUTILS_INTERACTIVE = 16 268 FILEUTILS_INTERACTIVE = 16
269}; 269};
270 270
271extern const char *applet_name; 271extern const char * const applet_name;
272extern const char *full_version; 272extern const char * const full_version;
273extern const char *name_too_long; 273extern const char * const name_too_long;
274extern const char *omitting_directory; 274extern const char * const omitting_directory;
275extern const char *not_a_directory; 275extern const char * const not_a_directory;
276extern const char *memory_exhausted; 276extern const char * const memory_exhausted;
277extern const char *invalid_date; 277extern const char * const invalid_date;
278extern const char *invalid_option; 278extern const char * const invalid_option;
279extern const char *io_error; 279extern const char * const io_error;
280extern const char *dash_dash_help; 280extern const char * const dash_dash_help;
281extern const char *write_error; 281extern const char * const write_error;
282extern const char *too_few_args; 282extern const char * const too_few_args;
283extern const char *name_longer_than_foo; 283extern const char * const name_longer_than_foo;
284 284
285#endif /* __LIBBB_H__ */ 285#endif /* __LIBBB_H__ */
diff --git a/libbb/messages.c b/libbb/messages.c
index bdf931ba6..99c2bc9d5 100644
--- a/libbb/messages.c
+++ b/libbb/messages.c
@@ -22,40 +22,40 @@
22#include "libbb.h" 22#include "libbb.h"
23 23
24#ifdef L_full_version 24#ifdef L_full_version
25 const char *full_version = BB_BANNER " multi-call binary"; 25 const char * const full_version = BB_BANNER " multi-call binary";
26#endif 26#endif
27#ifdef L_name_too_long 27#ifdef L_name_too_long
28 const char *name_too_long = "file name too long"; 28 const char * const name_too_long = "file name too long";
29#endif 29#endif
30 30
31#ifdef L_omitting_directory 31#ifdef L_omitting_directory
32 const char *omitting_directory = "%s: omitting directory"; 32 const char * const omitting_directory = "%s: omitting directory";
33#endif 33#endif
34#ifdef L_not_a_directory 34#ifdef L_not_a_directory
35 const char *not_a_directory = "%s: not a directory"; 35 const char * const not_a_directory = "%s: not a directory";
36#endif 36#endif
37#ifdef L_memory_exhausted 37#ifdef L_memory_exhausted
38 const char *memory_exhausted = "memory exhausted"; 38 const char * const memory_exhausted = "memory exhausted";
39#endif 39#endif
40#ifdef L_invalid_date 40#ifdef L_invalid_date
41 const char *invalid_date = "invalid date `%s'"; 41 const char * const invalid_date = "invalid date `%s'";
42#endif 42#endif
43#ifdef L_invalid_option 43#ifdef L_invalid_option
44 const char *invalid_option = "invalid option -- %c"; 44 const char * const invalid_option = "invalid option -- %c";
45#endif 45#endif
46#ifdef L_io_error 46#ifdef L_io_error
47 const char *io_error = "%s: input/output error -- %s"; 47 const char * const io_error = "%s: input/output error -- %s";
48#endif 48#endif
49#ifdef L_dash_dash_help 49#ifdef L_dash_dash_help
50 const char *dash_dash_help = "--help"; 50 const char * const dash_dash_help = "--help";
51#endif 51#endif
52#ifdef L_write_error 52#ifdef L_write_error
53 const char *write_error = "Write Error"; 53 const char * const write_error = "Write Error";
54#endif 54#endif
55#ifdef L_too_few_args 55#ifdef L_too_few_args
56 const char *too_few_args = "too few arguments"; 56 const char * const too_few_args = "too few arguments";
57#endif 57#endif
58#ifdef L_name_longer_than_foo 58#ifdef L_name_longer_than_foo
59 const char *name_longer_than_foo = "Names longer than %d chars not supported."; 59 const char * const name_longer_than_foo = "Names longer than %d chars not supported.";
60#endif 60#endif
61 61