From 36ff7d81432308ba430414180c0ab7a41af228ba Mon Sep 17 00:00:00 2001 From: Xavier Del Campo Romero Date: Thu, 6 Jul 2023 00:56:19 +0200 Subject: main.c: Use ISO C99-compatible declaration for main MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit C99 ยง5.1.2.2.1 only defines the following declarations for main: - int main(void) - int main(int argc, char *argv[]) While the use of equivalent types (e.g.: char **argv) is allowed, const char ** would not be considered equivalent, and thus an invalid declaration depending on the implementation. --- main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.c b/main.c index 2313fec..ef1dde3 100644 --- a/main.c +++ b/main.c @@ -1424,7 +1424,7 @@ end: return ret; } -int main(const int argc, char *const argv[]) +int main(int argc, char *argv[]) { int ret = EXIT_FAILURE; struct handler *h = NULL; -- cgit v1.2.3