mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
setsockopt arg optvalue supposed to be ptr
This commit is contained in:
parent
1bbf3a3a0c
commit
53e439bc99
@ -65,7 +65,7 @@ pub fn socket(family int, _type int, proto int) Socket {
|
||||
}
|
||||
|
||||
// set socket options
|
||||
pub fn (s Socket) setsockopt(level int, optname int, optvalue int) int {
|
||||
pub fn (s Socket) setsockopt(level int, optname int, optvalue *int) int {
|
||||
res := C.setsockopt(s.sockfd, level, optname, optvalue, C.sizeof(optvalue))
|
||||
return res
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user