summaryrefslogtreecommitdiff
blob: 0a4a0350324620ac0cd39f6199d1e91af85dffe9 (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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
--- xfishtank-2.1tp/read.c
+++ xfishtank-2.1tp/read.c
@@ -1,5 +1,7 @@
 #include <X11/Xlib.h>
 #include <stdio.h>
+#include <stdlib.h>
+#include <string.h>
 #include "compact.h"
 #include "medcut.h"
 
--- xfishtank-2.1tp/medcut.c
+++ xfishtank-2.1tp/medcut.c
@@ -1,4 +1,5 @@
 #include <stdio.h>
+#include <stdlib.h>
 #include "medcut.h"
 
 #define RED     0
--- xfishtank-2.1tp/xfish.c
+++ xfishtank-2.1tp/xfish.c
@@ -46,6 +46,9 @@
 #endif
 
 #include <stdio.h>
+#include <stdlib.h>
+#include <string.h>
+#include <unistd.h>
 #ifdef sgi
 #define _BSD_SIGNALS
 #endif
@@ -848,8 +850,8 @@
 	struct colr_data colrs[256];
 
 	colormap = XDefaultColormap(Dpy, screen);

-	if (colormap == NULL)
+	if (colormap == 0)
 	{
 		return;
 	}
@@ -1812,9 +1814,11 @@
 high_res_sleep(seconds)
     double      seconds;
 {
-    int         fds = 0;
+    fd_set      fds;
     struct timeval timeout;
 
+    FD_ZERO(&fds);
+
     timeout.tv_sec = seconds;
     timeout.tv_usec = (seconds - timeout.tv_sec) * 1000000.0;
     select(0, &fds, &fds, &fds, &timeout);
--- xfishtank-2.1tp/makeh.c
+++ xfishtank-2.1tp/makeh.c
@@ -1,6 +1,6 @@
-
+#include <stdlib.h>
 #include <stdio.h>
-
+#include <string.h>
 main()
 {
 	FILE *fp;
--- xfishtank-2.1tp/gifread.c
+++ xfishtank-2.1tp/gifread.c
@@ -56,6 +56,8 @@
 
 #include <X11/Xlib.h>
 #include <stdio.h>
+#include <stdlib.h>
+#include <string.h>
 #if  defined(SYSV) || defined(SVR4)
 #include <string.h>
 #else	/* SYSV */