Skip to content
Snippets Groups Projects
Unverified Commit df09c4e8 authored by Mohamed S. Mahmoud's avatar Mohamed S. Mahmoud Committed by GitHub
Browse files

fix build for s390x and ppc64le (#151)


Signed-off-by: default avatarmsherif1234 <mmahmoud@redhat.com>
parent 7334604e
No related branches found
No related tags found
No related merge requests found
......@@ -81,7 +81,7 @@ func currentKernelVersion() (uint32, error) {
return kernelVersionFromReleaseString(releaseString)
}
func utsnameStr(in []int8) string {
func utsnameStr[T int8 | uint8](in []T) string {
out := make([]byte, len(in))
for i := 0; i < len(in); i++ {
if in[i] == 0 {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment