diff options
author | Egor Tensin <Egor.Tensin@gmail.com> | 2023-04-29 10:05:10 +0200 |
---|---|---|
committer | Egor Tensin <Egor.Tensin@gmail.com> | 2023-04-29 10:05:10 +0200 |
commit | 2288866ba616148d6d3dbe74ee8f269ba9132149 (patch) | |
tree | 8c59ae13647d08042a249175c482c03bef9b69e4 /src/client_main.c | |
parent | make struct worker opaque (diff) | |
download | cimple-2288866ba616148d6d3dbe74ee8f269ba9132149.tar.gz cimple-2288866ba616148d6d3dbe74ee8f269ba9132149.zip |
make struct client opaque
Diffstat (limited to 'src/client_main.c')
-rw-r--r-- | src/client_main.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/client_main.c b/src/client_main.c index b481e44..dd6c8c5 100644 --- a/src/client_main.c +++ b/src/client_main.c @@ -71,7 +71,7 @@ static int parse_settings(struct settings *settings, int argc, char *argv[]) int main(int argc, char *argv[]) { struct settings settings; - struct client client; + struct client *client; int ret = 0; ret = parse_settings(&settings, argc, argv); @@ -82,12 +82,12 @@ int main(int argc, char *argv[]) if (ret < 0) return ret; - ret = client_main(&client, argc - optind, argv + optind); + ret = client_main(client, argc - optind, argv + optind); if (ret < 0) goto destroy_client; destroy_client: - client_destroy(&client); + client_destroy(client); return ret; } |