Fix Go binding build error (#1535)

This commit is contained in:
Wenyong Huang 2022-09-29 15:32:21 +08:00 committed by GitHub
parent 3220ff6941
commit 2a5451a35c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -134,8 +134,7 @@ func (self *Module) SetWasiAddrPool(addrPool [][]byte) {
}
/* Set module's wasi domain lookup pool */
func(self *Module) SetWasiNsLookupPool(nsLookupPool[][] byte)
{
func(self *Module) SetWasiNsLookupPool(nsLookupPool [][]byte) {
var nsLookupPoolPtr **C.char
var nsLookupPoolSize C.uint
@ -144,4 +143,4 @@ func(self *Module) SetWasiNsLookupPool(nsLookupPool[][] byte)
nsLookupPoolSize = C.uint(len(nsLookupPool))
}
C.wasm_runtime_set_wasi_ns_lookup_pool(self.module, nsLookupPoolPtr, nsLookupPoolSize)
}
}