8309219: Fix xlc17 clang 15 warnings in java.base

Reviewed-by: goetz, mdoerr
This commit is contained in:
JoKern65 2023-06-07 13:42:03 +00:00 committed by Martin Doerr
parent 177e8327d6
commit 6eddbe26dd
6 changed files with 12 additions and 9 deletions

View file

@ -1,5 +1,5 @@
/*
* Copyright (c) 2014, 2022, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2014, 2023, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@ -622,7 +622,7 @@ jint unix_getChildren(JNIEnv *env, jlong jpid, jlongArray jarray,
static int getPsinfo(pid_t pid, psinfo_t *psinfo) {
FILE* fp;
char fn[32];
int ret;
size_t ret;
/*
* Try to open /proc/%d/psinfo