From 9fc66fb5afdc9e9c7d2a08b92767a299e8bb64a6 Mon Sep 17 00:00:00 2001 From: Ivan Grokhotkov Date: Tue, 5 Apr 2022 20:30:18 +0200 Subject: [PATCH] fix: use same argument name in arg_end declaration and definition Issue raised by clang-tidy --- src/argtable3.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/argtable3.h b/src/argtable3.h index 487c22d..a8ee95d 100644 --- a/src/argtable3.h +++ b/src/argtable3.h @@ -210,7 +210,7 @@ ARG_EXTERN struct arg_date* arg_date0(const char* shortopts, const char* longopt ARG_EXTERN struct arg_date* arg_date1(const char* shortopts, const char* longopts, const char* format, const char* datatype, const char* glossary); ARG_EXTERN struct arg_date* arg_daten(const char* shortopts, const char* longopts, const char* format, const char* datatype, int mincount, int maxcount, const char* glossary); -ARG_EXTERN struct arg_end* arg_end(int maxerrors); +ARG_EXTERN struct arg_end* arg_end(int maxcount); #define ARG_DSTR_STATIC ((arg_dstr_freefn*)0) #define ARG_DSTR_VOLATILE ((arg_dstr_freefn*)1)