diff options
author | Egor Tensin <Egor.Tensin@gmail.com> | 2023-06-30 02:37:27 +0200 |
---|---|---|
committer | Egor Tensin <Egor.Tensin@gmail.com> | 2023-06-30 03:32:14 +0200 |
commit | e928ce51bd8c26742abfd537b054483a18a9689c (patch) | |
tree | ad3bfcf7b509dbde4681c011237c8bd23ee8583f /src/worker.c | |
parent | fix function names in error messages (diff) | |
download | cimple-e928ce51bd8c26742abfd537b054483a18a9689c.tar.gz cimple-e928ce51bd8c26742abfd537b054483a18a9689c.zip |
show git hash with --version
Also, use cmake's configure_file to build string constants in.
Diffstat (limited to 'src/worker.c')
-rw-r--r-- | src/worker.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/worker.c b/src/worker.c index 8536013..4b4413d 100644 --- a/src/worker.c +++ b/src/worker.c @@ -57,7 +57,7 @@ static struct settings *worker_settings_copy(const struct settings *src) return result; free_host: - free(result->host); + free((void *)result->host); free_result: free(result); @@ -67,8 +67,8 @@ free_result: static void worker_settings_destroy(struct settings *settings) { - free(settings->port); - free(settings->host); + free((void *)settings->port); + free((void *)settings->host); free(settings); } |