1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-30 05:40:06 +00:00

Fix compilation with clang: main() should return int not void.

This commit is contained in:
Stefan Eßer 2011-12-20 18:25:50 +00:00
parent 77ffb91e5a
commit 2734ac8554
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=287746
4 changed files with 59 additions and 4 deletions

View File

@ -1,5 +1,5 @@
--- webmaster.c.orig Wed Sep 4 20:30:39 2002
+++ webmaster.c Wed Sep 4 20:31:22 2002
--- webmaster.c.orig 1998-07-25 09:50:18.000000000 +0200
+++ webmaster.c 2011-12-20 19:14:07.911175579 +0100
@@ -88,7 +88,7 @@
SOCKET socknum[MAXCLIENTS];
SOCKET sockIO[MAXTOTALPROCS];
@ -9,6 +9,15 @@
struct hostent *master_phe; /* IP addresses for webmaster */
@@ -1343,7 +1343,7 @@
}
#endif /* WIN32 */
-void
+int
main(const int argc, char *argv[])
{
@@ -1385,6 +1385,7 @@
/* Initalization of variables. */

View File

@ -1,5 +1,5 @@
--- webclient.c.orig Wed Sep 4 20:34:36 2002
+++ webclient.c Wed Sep 4 20:35:02 2002
--- webclient.c.orig 1998-07-25 09:50:17.000000000 +0200
+++ webclient.c 2011-12-20 19:15:12.739176097 +0100
@@ -79,7 +79,7 @@
char proxyserver[MAXHOSTNAMELEN];
char debug_filename[MAXPATHLEN];
@ -9,3 +9,21 @@
THREAD FILE *logfile;
THREAD stats_t timestat;
THREAD rqst_timer_t timerarray[MAXNUMOFFILES];
@@ -691,7 +691,7 @@
}
}
-void
+int
main(int argc, char *argv[])
{
long fcount = 0;
@@ -928,7 +928,7 @@
CloseHandle(hSemaphore);
#endif /* WIN32 */
- return;
+ return(0);
}
void

View File

@ -0,0 +1,17 @@
--- genrand.c~ 1998-07-25 09:50:16.000000000 +0200
+++ genrand.c 2011-12-20 19:16:38.086174883 +0100
@@ -31,7 +31,7 @@
#include <sys/stat.h>
#include "sysdep.h"
-void
+int
main(const int argc, char* argv[])
{
FILE* file;
@@ -70,4 +70,5 @@
}
fclose(file);
+ return(0);
}

View File

@ -0,0 +1,11 @@
--- CGI-test/ws25_cgi.c~ 1998-07-25 10:49:54.000000000 +0200
+++ CGI-test/ws25_cgi.c 2011-12-20 19:17:47.104175312 +0100
@@ -62,7 +62,7 @@
#include <stdio.h>
#include <sys/types.h>
-void
+int
main()
{
char *query_string;