aboutsummaryrefslogtreecommitdiff
path: root/main.c
diff options
context:
space:
mode:
authorXavier Del Campo Romero <xavi.dcr@tutanota.com>2023-07-06 00:56:19 +0200
committerXavier Del Campo Romero <xavi.dcr@tutanota.com>2023-07-06 00:56:27 +0200
commit36ff7d81432308ba430414180c0ab7a41af228ba (patch)
treeec95f9797ec51047462a1aab8146688e8508dff2 /main.c
parent640210a7f6f527c24924e95c51c5665b3cd76d03 (diff)
downloadslcl-36ff7d81432308ba430414180c0ab7a41af228ba.tar.gz
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.
Diffstat (limited to 'main.c')
-rw-r--r--main.c2
1 files changed, 1 insertions, 1 deletions
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;