From cfb7a5dc2e452adec1bb2da7ddaaaaeb5e5d7baf Mon Sep 17 00:00:00 2001 From: shirou Date: Sat, 2 Mar 2024 11:20:49 +0900 Subject: [PATCH] [host][linux]: change Line/User/Host to int8 on utmp Generated code is uint8 on arm64. However, it is not same as other archtectures. This commit changes by hand. --- host/host_linux_arm64.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/host/host_linux_arm64.go b/host/host_linux_arm64.go index 4ea13f7..0f5cce6 100644 --- a/host/host_linux_arm64.go +++ b/host/host_linux_arm64.go @@ -23,10 +23,10 @@ type ( utmp struct { Type int16 Pid int32 - Line [32]uint8 - Id [4]uint8 - User [32]uint8 - Host [256]uint8 + Line [32]int8 // changed by hand #1603 + Id [4]int8 // changed by hand + User [32]int8 // changed by hand + Host [256]int8 // changed by hand Exit exit_status Session int64 Tv timeval