mirror of
https://github.com/opnsense/src.git
synced 2026-06-11 09:41:03 -04:00
libprocstat: use elf_getphdrnum rather than deprecated elf_getphnum
PR: 273966
Reviewed by: emaste
(cherry picked from commit 633094c27f)
This commit is contained in:
parent
d0c0dcf9db
commit
fd8bf2ecc0
1 changed files with 1 additions and 1 deletions
|
|
@ -119,7 +119,7 @@ procstat_core_open(const char *filename)
|
|||
warnx("%s is not a CORE file", filename);
|
||||
goto fail;
|
||||
}
|
||||
if (elf_getphnum(e, &nph) == 0) {
|
||||
if (elf_getphdrnum(e, &nph) == -1) {
|
||||
warnx("program headers not found");
|
||||
goto fail;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue