diff --git a/server.c b/server.c index 9a80f80..4002fff 100644 --- a/server.c +++ b/server.c @@ -490,7 +490,7 @@ int main(int argc, char *argv[]) { fp = fopen(argv[as_daemon?6:5], "rb+"); if(fp) { SIMPLE_PB* spb = get_pb(fp); - cfg = spb->target; + cfg = (CONFIG*)spb->target; fclose(fp); if(bind_server(port, times)) if(listen_socket(times)) accept_client(); } else printf("Error opening config file: %s\n", argv[as_daemon?6:5]); diff --git a/simple-protobuf b/simple-protobuf index db1b95a..9194d38 160000 --- a/simple-protobuf +++ b/simple-protobuf @@ -1 +1 @@ -Subproject commit db1b95a42e6abc9f4ed980d3bf819e534374fcdb +Subproject commit 9194d3853bd7e0512dcc8f568683e0878dd54bfb