1
0
mirror of https://github.com/fumiama/simple-dict.git synced 2026-06-05 02:00:25 +08:00

输出格式统一

This commit is contained in:
fumiama
2021-05-19 13:02:47 +08:00
parent 27e89830e1
commit bfc06ff744
3 changed files with 3 additions and 2 deletions

1
.gitignore vendored
View File

@@ -1,3 +1,4 @@
build
.vscode
.vscode/settings.json
.DS_Store

View File

@@ -90,7 +90,7 @@ int main(int argc,char *argv[]) { //usage: ./client host port
else puts("Send file error.");
#endif
fclose(fp);
printf("Send count:%lld\n", len);
printf("Send count:%u\n", len);
} else puts("Open file error!");
} else {
send(sockfd, buf, strlen(buf), 0);

View File

@@ -152,7 +152,7 @@ int send_all(THREADTIMER *timer) {
send_data(timer->accept_fd, timer->data, head_len);
re = sendfile(timer->accept_fd, fileno(fp), &len, file_size) >= 0;
#endif
printf("Send %lld bytes.\n", len);
printf("Send %u bytes.\n", len);
close_dict();
timer->is_open = 0;
}