From dad5cbe83b09fefb48a99fca42b0f6fefeb4fa97 Mon Sep 17 00:00:00 2001 From: Rene Kita Date: Thu, 2 Sep 2021 21:09:42 +0200 Subject: [PATCH] Use main(void) when not taking arguments --- scrsize.c | 2 +- w3mbookmark.c | 2 +- w3mhelperpanel.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/scrsize.c b/scrsize.c index b45009a..d71ffd3 100644 --- a/scrsize.c +++ b/scrsize.c @@ -37,7 +37,7 @@ #include int -main() +main(void) { char *cp; Display *dpy; diff --git a/w3mbookmark.c b/w3mbookmark.c index 0c9b8fb..2e64327 100644 --- a/w3mbookmark.c +++ b/w3mbookmark.c @@ -181,7 +181,7 @@ insert_bookmark(char *bmark, struct parsed_tagarg *data) } int -main(int argc, char *argv[]) +main(void) { extern char *getenv(); char *p; diff --git a/w3mhelperpanel.c b/w3mhelperpanel.c index bedbba5..7d13032 100644 --- a/w3mhelperpanel.c +++ b/w3mhelperpanel.c @@ -164,7 +164,7 @@ editMailcap(char *mailcap, struct parsed_tagarg *args) } int -main(int argc, char *argv[]) +main(void) { Str mailcapfile; extern char *getenv();