mirror of
https://git.freebsd.org/ports.git
synced 2025-05-27 08:26:27 -04:00
./load.h:109:22: error: invalid suffix on literal; C++11 requires a space between literal and identifier [-Wreserved-user-defined-literal] sprintf(path, "%s"DIR_SEP"%s", directory, filename); ^ ./load.h:95:16: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] directory = LIBDIR; ^ http://beefy12.nyi.freebsd.org/data/head-amd64-default/p475044_s336572/logs/maelstrom-3.0.6_13.log - While here fix some bad implicit declaration warnings
22 lines
1,017 B
C
22 lines
1,017 B
C
Maelstrom-netd.c:48:10: warning: implicit declaration of function 'free' is invalid in C99 [-Wimplicit-function-declaration]
|
|
(void) free(players[which].packet);
|
|
^
|
|
Maelstrom-netd.c:62:3: warning: implicitly declaring library function 'exit' with type 'void (int) __attribute__((noreturn))' [-Wimplicit-function-declaration]
|
|
exit(3);
|
|
^
|
|
Maelstrom-netd.c:62:3: note: include the header <stdlib.h> or explicitly provide a declaration for 'exit'
|
|
Maelstrom-netd.c:157:24: warning: implicit declaration of function 'inet_ntoa' is invalid in C99 [-Wimplicit-function-declaration]
|
|
strcpy(ptr, (char *)inet_ntoa(player->raddr.sin_addr));
|
|
^
|
|
|
|
--- Maelstrom-netd.c.orig 2018-07-28 05:49:43 UTC
|
|
+++ Maelstrom-netd.c
|
|
@@ -9,6 +9,8 @@
|
|
#include <sys/time.h>
|
|
#include <sys/socket.h>
|
|
#include <netinet/in.h>
|
|
+#include <arpa/inet.h>
|
|
+#include <stdlib.h>
|
|
#include <netdb.h>
|
|
#include <unistd.h>
|
|
|