1
0
mirror of https://github.com/fumiama/simple-dict.git synced 2026-06-10 21:24:49 +08:00

fix warns

This commit is contained in:
源文雨
2022-05-05 23:27:21 +08:00
parent d9cd77a69c
commit 21773b3710

View File

@@ -294,6 +294,7 @@ static int s2_set(thread_timer_t *timer) {
break;
}
pthread_cleanup_pop(0);
return r;
}
static int s3_set_data(thread_timer_t *timer) {
@@ -475,7 +476,7 @@ static void handle_accept(void *p) {
pthread_cleanup_push((void*)&kill_timer, thread);
int accept_fd = timer_pointer_of(p)->accept_fd;
uint32_t index = timer_pointer_of(p)->index;
char *buff = timer_pointer_of(p)->buf;
uint8_t *buff = timer_pointer_of(p)->buf;
CMDPACKET* cp = (CMDPACKET*)buff;
ssize_t numbytes = 0, offset = 0;
while(