mirror of
https://github.com/openbsd/ports.git
synced 2026-06-17 23:13:55 +02:00
20fe00dcde
OK phessler@
26 lines
585 B
Plaintext
26 lines
585 B
Plaintext
ports-gcc: fix warnings of implicit built-in functions
|
|
|
|
Index: Maelstrom-netd.c
|
|
--- Maelstrom-netd.c.orig
|
|
+++ Maelstrom-netd.c
|
|
@@ -8,8 +8,10 @@
|
|
#include <sys/types.h>
|
|
#include <sys/time.h>
|
|
#include <sys/socket.h>
|
|
+#include <arpa/inet.h>
|
|
#include <netinet/in.h>
|
|
#include <netdb.h>
|
|
+#include <stdlib.h>
|
|
#include <unistd.h>
|
|
|
|
/* We wait in a loop for players to connect and tell us how many people
|
|
@@ -181,7 +183,7 @@ void I_Crashed(int sig)
|
|
exit(sig);
|
|
}
|
|
|
|
-main(int argc, char *argv[])
|
|
+int main(int argc, char *argv[])
|
|
{
|
|
int netfd, i, slot;
|
|
struct sockaddr_in serv_addr;
|