aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/src/client_main.c
diff options
context:
space:
mode:
authorEgor Tensin <Egor.Tensin@gmail.com>2023-04-29 10:05:10 +0200
committerEgor Tensin <Egor.Tensin@gmail.com>2023-04-29 10:05:10 +0200
commit2288866ba616148d6d3dbe74ee8f269ba9132149 (patch)
tree8c59ae13647d08042a249175c482c03bef9b69e4 /src/client_main.c
parentmake struct worker opaque (diff)
downloadcimple-2288866ba616148d6d3dbe74ee8f269ba9132149.tar.gz
cimple-2288866ba616148d6d3dbe74ee8f269ba9132149.zip
make struct client opaque
Diffstat (limited to 'src/client_main.c')
-rw-r--r--src/client_main.c6
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;
}