summaryrefslogtreecommitdiff
blob: beda933c19f36095332aaa2e975d4320926b5416 (plain)
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
41
42
43
44
45
46
47
48
49
--- a/dsimple.c	1995-10-19 00:59:17.000000000 +0100
+++ b/dsimple.c	2013-08-03 18:27:16.670506562 +0200
@@ -5,6 +5,8 @@
 #include <X11/Xutil.h>
 #include <X11/cursorfont.h>
 #include <stdio.h>
+#include <stdlib.h> /* malloc() */
+#include <unistd.h> /* exit() */
 /*
  * Other_stuff.h: Definitions of routines in other_stuff.
  *
@@ -46,7 +48,7 @@
 char *Malloc(size)
      unsigned size;
 {
-	char *data, *malloc();
+	char *data; /*, *malloc(); */
 
 	if (!(data = malloc(size)))
 	  Fatal_Error("Out of memory!");
@@ -62,7 +64,7 @@
         char *ptr;
         int size;
 {
-	char *new_ptr, *realloc();
+	char *new_ptr; /*, *realloc(); */
 
 	if (!ptr)
 	  return(Malloc(size));
--- a/xwit.c	1997-10-21 03:32:54.000000000 +0200
+++ b/xwit.c	2013-08-03 18:38:52.075456902 +0200
@@ -31,6 +31,8 @@
 #include <X11/Xutil.h>
 #include <X11/Xproto.h>
 #include <stdio.h>
+#include <stdlib.h> /* atoi() */
+#include <sys/select.h> /* select() */                                                                                              
 #include <sys/time.h>
 #include "dsimple.h"
 
@@ -134,7 +136,7 @@
     struct timeval tv;
     tv.tv_sec = ms/1000;
     tv.tv_usec = (ms%1000)*1000;
-    select(0,(int*)0,(int*)0,(int*)0,&tv);
+    select(0,0,0,0,&tv);
 }
 
 /*