diff options
author | Egor Tensin <Egor.Tensin@gmail.com> | 2023-04-29 10:04:56 +0200 |
---|---|---|
committer | Egor Tensin <Egor.Tensin@gmail.com> | 2023-04-29 10:04:56 +0200 |
commit | 7855893959b44d12f9e333278e325e49f47c5a9f (patch) | |
tree | 3e24dab57e32780a1600c534a635f5a942e23cac /src/worker_main.c | |
parent | make struct server opaque (diff) | |
download | cimple-7855893959b44d12f9e333278e325e49f47c5a9f.tar.gz cimple-7855893959b44d12f9e333278e325e49f47c5a9f.zip |
make struct worker opaque
Diffstat (limited to 'src/worker_main.c')
-rw-r--r-- | src/worker_main.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/worker_main.c b/src/worker_main.c index 7451861..7c78f93 100644 --- a/src/worker_main.c +++ b/src/worker_main.c @@ -72,7 +72,7 @@ static int parse_settings(struct settings *settings, int argc, char *argv[]) int main(int argc, char *argv[]) { struct settings settings; - struct worker worker; + struct worker *worker; int ret = 0; ret = parse_settings(&settings, argc, argv); @@ -83,12 +83,12 @@ int main(int argc, char *argv[]) if (ret < 0) return ret; - ret = worker_main(&worker, argc - optind, argv + optind); + ret = worker_main(worker, argc - optind, argv + optind); if (ret < 0) goto destroy_worker; destroy_worker: - worker_destroy(&worker); + worker_destroy(worker); return ret; } |