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

优化代码结构

This commit is contained in:
源文雨
2022-05-15 13:36:30 +08:00
parent 46e80af181
commit 9a7868a49f
2 changed files with 1 additions and 2 deletions

View File

@@ -150,7 +150,6 @@ int main(int argc, char *argv[]) { // usage: ./client cfg.sp host port
perror("fopen");
return 1;
}
uint8_t buf[8+sizeof(config_t)];
SIMPLE_PB* spb = read_pb_into(fp, (SIMPLE_PB*)buf);
if(!spb) {
fprintf(stderr, "Error reading config file: %s\n", argv[1]);