From: Karel Zak Date: Thu, 3 Apr 2025 12:05:09 +0000 (+0200) Subject: setarch: use strtopid_or_err() X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=c8dc60f9ff0a8aa19b315d4c49e784689af18dbc;p=thirdparty%2Futil-linux.git setarch: use strtopid_or_err() Addresses: https://github.com/util-linux/util-linux/pull/3486 Signed-off-by: Karel Zak --- diff --git a/sys-utils/setarch.c b/sys-utils/setarch.c index c5a2751f6..3a86f2ee9 100644 --- a/sys-utils/setarch.c +++ b/sys-utils/setarch.c @@ -567,7 +567,7 @@ int main(int argc, char *argv[]) goto error_getopts; case 'p': if (!archwrapper) { - target_pid = strtos32_or_err(optarg, _("invalid PID argument")); + target_pid = strtopid_or_err(optarg, _("invalid PID argument")); if (target_pid <= 0) errx(EXIT_FAILURE, _("out of range value for pid specification: %d"), target_pid);