summaryrefslogtreecommitdiff
path: root/dln.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 /dln.c
parentea7e249079c86e502d2af4c6c896952dd5cad150 (diff)
* 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 'dln.c')
-rw-r--r--dln.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/dln.c b/dln.c
index deae9ac..8b46954 100644
--- a/dln.c
+++ b/dln.c
@@ -612,7 +612,7 @@ reloc_repl(int no, struct undef *undef, struct indr_data *data)
static int
load_1(int fd, long disp, const char *need_init)
{
- static char *libc = LIBC_NAME;
+ static const char *libc = LIBC_NAME;
struct exec hdr;
struct relocation_info *reloc = NULL;
long block = 0;
@@ -1714,7 +1714,7 @@ dln_find_1(const char *fname, const char *path, int exe_flag /* non 0 if looking
#endif
#if defined(DOSISH)
if (exe_flag) {
- static const char *extension[] = {
+ static const char *const extension[] = {
#if defined(MSDOS)
".com", ".exe", ".bat",
#if defined(DJGPP)