1
0
mirror of https://github.com/fumiama/simple-kanban.git synced 2026-06-26 05:40:29 +08:00

修复小错误

This commit is contained in:
fumiama
2021-05-02 23:31:02 +08:00
parent c2cdaca9d9
commit 02314a6399

View File

@@ -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