]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
setarch: use strtopid_or_err()
authorKarel Zak <kzak@redhat.com>
Thu, 3 Apr 2025 12:05:09 +0000 (14:05 +0200)
committerKarel Zak <kzak@redhat.com>
Thu, 3 Apr 2025 12:05:13 +0000 (14:05 +0200)
Addresses: https://github.com/util-linux/util-linux/pull/3486
Signed-off-by: Karel Zak <kzak@redhat.com>
sys-utils/setarch.c

index c5a2751f6f49136da1f6a5870abfd1bcf8d1cc3c..3a86f2ee9fc5c639ef8097b056dd3aa5b72c6763 100644 (file)
@@ -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);