1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40
|
Author: Rhonda D'Vine <rhonda@debian.org> vim:ft=diff:
Description: various small changes to fix compile warnings
Index: b/game.c
===================================================================
--- a/game.c
+++ b/game.c
@@ -21,6 +21,7 @@
#define NOEXT
#include "netris.h"
+#include <time.h>
#include <stdlib.h>
#include <ctype.h>
#include <string.h>
Index: b/inet.c
===================================================================
--- a/inet.c
+++ b/inet.c
@@ -52,7 +52,7 @@ ExtFunc int WaitForConnection(char *port
struct sockaddr_in addr;
struct hostent *host;
int sockListen;
- int addrLen;
+ socklen_t addrLen;
short port;
int val1;
struct linger val2;
Index: b/util.c
===================================================================
--- a/util.c
+++ b/util.c
@@ -20,6 +20,7 @@
*/
#include "netris.h"
+#include <time.h>
#include <stdarg.h>
#include <stdlib.h>
#include <string.h>
|