summaryrefslogtreecommitdiff
blob: 49bce1b14e36a833dc9e930962cad5394f0d9836 (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
76
77
78
79
diff -Nur clients/map.orig/map.c clients/map/map.c
--- clients/map.orig/map.c	2007-09-11 15:56:24.838414157 +0100
+++ clients/map/map.c	2007-09-11 15:52:24.148698032 +0100
@@ -18,7 +18,7 @@
 *****************************************************************************/
 /* Form definition file generated with fdesign. */
 
-#include "forms.h"
+#include <forms.h>
 #include <stdlib.h>
 #include "map.h"
 #include "world_fill.h"
diff -Nur clients/map.orig/map_cb.c clients/map/map_cb.c
--- clients/map.orig/map_cb.c	2007-09-11 15:56:24.838414157 +0100
+++ clients/map/map_cb.c	2007-09-11 15:54:05.190456074 +0100
@@ -18,9 +18,11 @@
 *****************************************************************************/
 #include <stdio.h>
 #include <stdlib.h>
+#include <unistd.h>
 #include <sys/types.h>
 #include <sys/socket.h>
 #include <netinet/in.h>
+#include <arpa/inet.h>
 #include <netdb.h>
 #include <signal.h>
 #include <time.h>
@@ -39,7 +41,7 @@
 	/* This function implements the arccosine function,
 	   returning a value between 0 and two pi. */
 
-	double result, fraction;
+	double result=0.0, fraction;
 
 	fraction=x/y;
 
@@ -76,7 +78,7 @@
 	bzero((char *)&sin,sizeof(struct sockaddr_in));
 	sin.sin_family = AF_INET;
 	
-	if (pse=getservbyname(service,protocol))
+	if ((pse=getservbyname(service,protocol)))
 		sin.sin_port=pse->s_port;
 
 	else if ((sin.sin_port=htons((unsigned short)atoi(service)))==0)
@@ -85,7 +87,7 @@
 	   return -1;
 	}
 
-	if (phe=gethostbyname(host))
+	if ((phe=gethostbyname(host)))
 		bcopy(phe->h_addr,(char *)&sin.sin_addr,phe->h_length);
 
 	else if ((sin.sin_addr.s_addr = inet_addr(host))==INADDR_NONE)
diff -Nur clients/map.orig/map_main.c clients/map/map_main.c
--- clients/map.orig/map_main.c	2007-09-11 15:56:24.838414157 +0100
+++ clients/map/map_main.c	2007-09-11 15:55:58.208896628 +0100
@@ -16,9 +16,11 @@
 * for more details.                                                         *
 *                                                                           *
 *****************************************************************************/
-#include "forms.h"
+#include <forms.h>
 #include "map.h"
 #include <sys/timeb.h>
+#include <unistd.h>
+#include <stdlib.h>
 
 extern int connectsock();
 extern void handler();
@@ -29,7 +31,7 @@
 int main(int argc, char *argv[])
 {
 	int i, skt, x, y, z;
-	char cmd[16], bufr[625], satnamelist[26][26];
+	char bufr[625], satnamelist[26][26];
 	const char *ptrsat;
 	FD_map *fd_map;
 	struct timeb tptr;