aboutsummaryrefslogtreecommitdiffstats
path: root/ruby.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-07-26 04:57:48 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-07-26 04:57:48 +0000
commitd13499173031809a316f1e5d25d9bb3e825e146c (patch)
treef1c44c887f6993f1809a2e5dce66a333c312297f /ruby.c
parentea7e249079c86e502d2af4c6c896952dd5cad150 (diff)
downloadruby-d13499173031809a316f1e5d25d9bb3e825e146c.tar.gz
* dln.c (load_1, dln_find_1): constified.
* ruby.c (usage): constified. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12848 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ruby.c')
-rw-r--r--ruby.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ruby.c b/ruby.c
index 279fe4d0b6..7fb36355fa 100644
--- a/ruby.c
+++ b/ruby.c
@@ -80,7 +80,7 @@ usage(const char *name)
/* This message really ought to be max 23 lines.
* Removed -h because the user already knows that option. Others? */
- static const char *usage_msg[] = {
+ static const char *const usage_msg[] = {
"-0[octal] specify record separator (\\0, if no argument)",
"-a autosplit mode with -n or -p (splits $_ into $F)",
"-c check syntax only",
@@ -106,7 +106,7 @@ usage(const char *name)
"--version print the version",
NULL
};
- const char **p = usage_msg;
+ const char *const *p = usage_msg;
printf("Usage: %s [switches] [--] [programfile] [arguments]\n", name);
while (*p)