mirror of
https://github.com/fumiama/simple-kanban.git
synced 2026-06-29 23:51:09 +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.");
|
if(!sendfile(fileno(fp), sockfd, 0, &len, &hdtr, 0)) puts("Send file success.");
|
||||||
else puts("Send file error.");
|
else puts("Send file error.");
|
||||||
#else
|
#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.");
|
if(!sendfile(fileno(fp), sockfd, &len, file_size)) puts("Send file success.");
|
||||||
else puts("Send file error.");
|
else puts("Send file error.");
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
Reference in New Issue
Block a user