mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-26 06:14:49 +02:00
7043564: compile warning and copyright fixes
Fixed the warning, also fixed copyrights in a bunch of files. Reviewed-by: johnc, kvn
This commit is contained in:
parent
8e56205189
commit
953f34d325
5 changed files with 47 additions and 9 deletions
|
@ -2850,7 +2850,7 @@ bool os::Linux::hugetlbfs_sanity_check(bool warn, size_t page_size) {
|
|||
char chars[257];
|
||||
long x = 0;
|
||||
if (fgets(chars, sizeof(chars), fp)) {
|
||||
if (sscanf(chars, "%lx-%*lx", &x) == 1
|
||||
if (sscanf(chars, "%lx-%*x", &x) == 1
|
||||
&& x == (long)p) {
|
||||
if (strstr (chars, "hugepage")) {
|
||||
result = true;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue