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

all: byte => u8

This commit is contained in:
Alexander Medvednikov
2022-04-15 14:58:56 +03:00
parent b49d873217
commit d4a0d6f73c
221 changed files with 1365 additions and 1365 deletions

View File

@ -211,7 +211,7 @@ pub fn new(config Config) &Picoev {
// Setting addr
mut addr := C.sockaddr_in{
sin_family: byte(C.AF_INET)
sin_family: u8(C.AF_INET)
sin_port: C.htons(config.port)
sin_addr: C.htonl(C.INADDR_ANY)
}
@ -234,7 +234,7 @@ pub fn new(config Config) &Picoev {
user_data: config.user_data
timeout_secs: config.timeout_secs
max_headers: config.max_headers
date: &byte(C.get_date())
date: &u8(C.get_date())
buf: unsafe { malloc_noscan(picoev.max_fds * picoev.max_read + 1) }
out: unsafe { malloc_noscan(picoev.max_fds * picoev.max_write + 1) }
}
@ -252,7 +252,7 @@ pub fn (p Picoev) serve() {
fn update_date(mut p Picoev) {
for {
p.date = &byte(C.get_date())
p.date = &u8(C.get_date())
C.usleep(1000000)
}
}