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:
源文雨
2022-05-15 13:36:30 +08:00
parent 46e80af181
commit 9a7868a49f
2 changed files with 1 additions and 2 deletions

View File

@@ -24,7 +24,7 @@ add_executable(cfgwriter cfgwriter.c)
#add_executable(migratenew migratenew.c)
target_link_libraries(simple-dict-server scrypto libspb.a pthread)
target_link_libraries(simple-dict-client scrypto pthread)
target_link_libraries(simple-dict-client scrypto libspb.a pthread)
target_link_libraries(cfgwriter libspb.a)
#target_link_libraries(migrate libspb.a)

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]);