main.c: Use ISO C99-compatible declaration for main

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.
This commit is contained in:
Xavier Del Campo Romero 2023-07-06 00:56:19 +02:00
parent 640210a7f6
commit 36ff7d8143
Signed by: xavi
GPG Key ID: 84FF3612A9BF43F2
1 changed files with 1 additions and 1 deletions

2
main.c
View File

@ -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;