fix warnings - geomyidae-tests - geomyidae tests
(HTM) git clone git://bitreich.org/geomyidae-tests/ git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrinws65d7roiv6bfj7d652fid.onion/geomyidae-tests/
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) Tags
(DIR) README
(DIR) LICENSE
---
(DIR) commit ae4e0ab63e7fb0ef6b694b952f582e96510382e9
(DIR) parent 95da8c518614938d7519048609b8d5c1a5298f23
(HTM) Author: Hiltjo Posthuma <hiltjo@codemadness.org>
Date: Fri, 21 Jul 2023 14:26:23 +0200
fix warnings
Diffstat:
M Makefile | 2 +-
M test.c | 3 +--
2 files changed, 2 insertions(+), 3 deletions(-)
---
(DIR) diff --git a/Makefile b/Makefile
@@ -1,5 +1,5 @@
build: clean
- ${CC} -o test.cgi test.c -static
+ ${CC} -o test.cgi test.c -static -Wall
setup:
mkdir -p results
(DIR) diff --git a/test.c b/test.c
@@ -34,7 +34,6 @@ write_test_counter(long counter)
{
FILE *fp;
char buf[32];
- size_t n;
int ret;
fp = fopen(counter_path, "wb+");
@@ -75,7 +74,7 @@ main(void)
counter = get_test_counter();
- snprintf(path, sizeof(path), "results/%lld.txt", counter);
+ snprintf(path, sizeof(path), "results/%ld.txt", counter);
fp = fopen(path, "wb+");
if (!fp) {
fprintf(stderr, "error writing result to path: %s: %s\n",