Date: Wed, 20 Sep 2023 13:50:58 +0000 From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 273966] libprocstat: use elf_getphdrnum() rather than deprecated elf_getphnum() Message-ID: <bug-273966-227-GMio45aIoF@https.bugs.freebsd.org/bugzilla/> In-Reply-To: <bug-273966-227@https.bugs.freebsd.org/bugzilla/> References: <bug-273966-227@https.bugs.freebsd.org/bugzilla/>
next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D273966 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=3D245056&action= =3Dedit [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. --=20 You are receiving this mail because: You are the assignee for the bug.=
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-273966-227-GMio45aIoF>