Skip to content

Commit 667d307

Browse files
committed
Improve constness.
1 parent 3bcb527 commit 667d307

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/hotspot/os/posix/os_posix.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1077,15 +1077,15 @@ void os::jvm_path(char *buf, jint buflen) {
10771077
return;
10781078
}
10791079

1080-
char* fname;
1080+
const char* fname;
10811081
#ifdef AIX
10821082
Dl_info dlinfo;
10831083
int ret = dladdr(CAST_FROM_FN_PTR(void *, os::jvm_path), &dlinfo);
10841084
assert(ret != 0, "cannot locate libjvm");
10851085
if (ret == 0) {
10861086
return;
10871087
}
1088-
fname = (char*)dlinfo.dli_fname;
1088+
fname = dlinfo.dli_fname;
10891089
#else
10901090
char dli_fname[MAXPATHLEN];
10911091
dli_fname[0] = '\0';

0 commit comments

Comments
 (0)