1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

ci: fix v -cc clang-11 -cflags -Werror cmd/v

This commit is contained in:
Delyan Angelov
2021-04-05 08:08:51 +03:00
parent 34aa67b1e8
commit 5c07cbf5d3
3 changed files with 19 additions and 19 deletions

View File

@ -7,13 +7,13 @@ pub const (
rtld_lazy = C.RTLD_LAZY
)
fn C.dlopen(filename charptr, flags int) voidptr
fn C.dlopen(filename &char, flags int) voidptr
fn C.dlsym(handle voidptr, symbol charptr) voidptr
fn C.dlsym(handle voidptr, symbol &char) voidptr
fn C.dlclose(handle voidptr) int
fn C.dlerror() charptr
fn C.dlerror() &char
// open loads the dynamic shared object.
pub fn open(filename string, flags int) voidptr {
@ -35,5 +35,5 @@ pub fn sym(handle voidptr, symbol string) voidptr {
// that occurred from a call to one of the `dl` functions, since the last
// call to dlerror()
pub fn dlerror() string {
return unsafe { cstring_to_vstring(byteptr(C.dlerror())) }
return unsafe { cstring_to_vstring(C.dlerror()) }
}