[Bug 273966] libprocstat: use elf_getphdrnum() rather than deprecated elf_getphnum()

From: <bugzilla-noreply_at_freebsd.org>
Date: Wed, 20 Sep 2023 13:50:58 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=273966

John Hein <jcfyecrayz@liamekaens.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
 Attachment #245052|0                           |1
        is obsolete|                            |

--- Comment #2 from John Hein <jcfyecrayz@liamekaens.com> ---
Created attachment 245056
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=245056&action=edit
[patch] v2: use non-deprecated elf_getphdrnum() rather than elf_getphnum()

The implementation of elf_getphnum() and elf_getphdrnum() are not quite
identical.  The return value for errors is 0 for the former and -1 for the
latter.

Patch adjusted accordingly.

-- 
You are receiving this mail because:
You are the assignee for the bug.