From 9a7868a49f8211919b0c307603aa9e6021cec68c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=BA=90=E6=96=87=E9=9B=A8?= <41315874+fumiama@users.noreply.github.com> Date: Sun, 15 May 2022 13:36:30 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E4=BB=A3=E7=A0=81=E7=BB=93?= =?UTF-8?q?=E6=9E=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- CMakeLists.txt | 2 +- client.c | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 5a71df3..9c8c51f 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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) diff --git a/client.c b/client.c index e84fe0e..2398efb 100644 --- a/client.c +++ b/client.c @@ -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]);