mirror of
https://github.com/fumiama/simple-kanban.git
synced 2026-06-26 05:40:29 +08:00
修复小错误
This commit is contained in:
2
client.c
2
client.c
@@ -81,7 +81,7 @@ int main(int argc,char *argv[]) { //usage: ./client host port
|
||||
if(!sendfile(fileno(fp), sockfd, 0, &len, &hdtr, 0)) puts("Send file success.");
|
||||
else puts("Send file error.");
|
||||
#else
|
||||
send(timer->accept_fd, &file_size, sizeof(uint32_t), 0);
|
||||
send(sockfd, &file_size, sizeof(uint32_t), 0);
|
||||
if(!sendfile(fileno(fp), sockfd, &len, file_size)) puts("Send file success.");
|
||||
else puts("Send file error.");
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user