mirror of
https://github.com/ruby/ruby.git
synced 2025-09-15 08:33:58 +02:00
* 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
This commit is contained in:
parent
ea7e249079
commit
d134991730
3 changed files with 9 additions and 5 deletions
4
dln.c
4
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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue