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

适配最新spb

This commit is contained in:
源文雨
2023-07-08 20:03:23 +08:00
parent a1283e714d
commit 09d5bc4fc2
5 changed files with 9 additions and 9 deletions

View File

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