mirror of
https://github.com/fumiama/simple-dict.git
synced 2026-06-08 03:50:25 +08:00
适配最新spb
This commit is contained in:
2
client.c
2
client.c
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user