mirror of
https://github.com/NVIDIA/nvidia-container-toolkit
synced 2024-11-22 08:18:32 +00:00
Merge pull request #713 from sananya12/nvsandboxutils-sananya
Fix an incompatible pointer conversion in nvsandboxutils
This commit is contained in:
commit
79c59aeb7f
@ -18,6 +18,7 @@ package nvsandboxutils
|
||||
|
||||
import (
|
||||
"strings"
|
||||
"unsafe"
|
||||
)
|
||||
|
||||
import "C"
|
||||
@ -54,7 +55,7 @@ func (l *library) GetGpuResource(uuid string) ([]GpuFileInfo, Ret) {
|
||||
var fileInfos []GpuFileInfo
|
||||
for fileInfo := request.Files; fileInfo != nil; fileInfo = fileInfo.Next {
|
||||
fi := GpuFileInfo{
|
||||
Path: C.GoString((*C.char)(fileInfo.FilePath)),
|
||||
Path: C.GoString((*C.char)(unsafe.Pointer(fileInfo.FilePath))),
|
||||
Type: FileType(fileInfo.FileType),
|
||||
SubType: FileSystemSubType(fileInfo.FileSubType),
|
||||
Module: FileModule(fileInfo.Module),
|
||||
|
Loading…
Reference in New Issue
Block a user