From: Eric Wong Date: Mon, 24 Jun 2019 02:52:17 +0000 (+0000) Subject: syscall: get rid of unnecessary uname local vars X-Git-Tag: v1.2.0~156^2~43 X-Git-Url: http://www.git.stargrave.org/?p=public-inbox.git;a=commitdiff_plain;h=e8dce524749fccb5b0044a92e221b03282f5024e syscall: get rid of unnecessary uname local vars We don't need to keep information from uname(2) around outside of startup. --- diff --git a/lib/PublicInbox/Syscall.pm b/lib/PublicInbox/Syscall.pm index 98110eaf..17fd1398 100644 --- a/lib/PublicInbox/Syscall.pm +++ b/lib/PublicInbox/Syscall.pm @@ -59,7 +59,6 @@ sub _load_syscall { return $rv; } -our ($sysname, $nodename, $release, $version, $machine) = POSIX::uname(); our ( $SYS_epoll_create, @@ -71,6 +70,7 @@ our ( our $no_deprecated = 0; if ($^O eq "linux") { + my $machine = (POSIX::uname())[-1]; # whether the machine requires 64-bit numbers to be on 8-byte # boundaries. my $u64_mod_8 = 0;