1 |
bicatali 07/09/11 15:06:58 |
2 |
|
3 |
Added: predict-2.2.3-xforms.patch |
4 |
Removed: digest-predict-2.2.2-r3 |
5 |
Log: |
6 |
Removed old versions, added longdescription, added a patch for xforms. |
7 |
(Portage version: 2.1.2.12) |
8 |
|
9 |
Revision Changes Path |
10 |
1.1 sci-astronomy/predict/files/predict-2.2.3-xforms.patch |
11 |
|
12 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-astronomy/predict/files/predict-2.2.3-xforms.patch?rev=1.1&view=markup |
13 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-astronomy/predict/files/predict-2.2.3-xforms.patch?rev=1.1&content-type=text/plain |
14 |
|
15 |
Index: predict-2.2.3-xforms.patch |
16 |
=================================================================== |
17 |
diff -Nur clients/map.orig/map.c clients/map/map.c |
18 |
--- clients/map.orig/map.c 2007-09-11 15:56:24.838414157 +0100 |
19 |
+++ clients/map/map.c 2007-09-11 15:52:24.148698032 +0100 |
20 |
@@ -18,7 +18,7 @@ |
21 |
*****************************************************************************/ |
22 |
/* Form definition file generated with fdesign. */ |
23 |
|
24 |
-#include "forms.h" |
25 |
+#include <forms.h> |
26 |
#include <stdlib.h> |
27 |
#include "map.h" |
28 |
#include "world_fill.h" |
29 |
diff -Nur clients/map.orig/map_cb.c clients/map/map_cb.c |
30 |
--- clients/map.orig/map_cb.c 2007-09-11 15:56:24.838414157 +0100 |
31 |
+++ clients/map/map_cb.c 2007-09-11 15:54:05.190456074 +0100 |
32 |
@@ -18,9 +18,11 @@ |
33 |
*****************************************************************************/ |
34 |
#include <stdio.h> |
35 |
#include <stdlib.h> |
36 |
+#include <unistd.h> |
37 |
#include <sys/types.h> |
38 |
#include <sys/socket.h> |
39 |
#include <netinet/in.h> |
40 |
+#include <arpa/inet.h> |
41 |
#include <netdb.h> |
42 |
#include <signal.h> |
43 |
#include <time.h> |
44 |
@@ -39,7 +41,7 @@ |
45 |
/* This function implements the arccosine function, |
46 |
returning a value between 0 and two pi. */ |
47 |
|
48 |
- double result, fraction; |
49 |
+ double result=0.0, fraction; |
50 |
|
51 |
fraction=x/y; |
52 |
|
53 |
@@ -76,7 +78,7 @@ |
54 |
bzero((char *)&sin,sizeof(struct sockaddr_in)); |
55 |
sin.sin_family = AF_INET; |
56 |
|
57 |
- if (pse=getservbyname(service,protocol)) |
58 |
+ if ((pse=getservbyname(service,protocol))) |
59 |
sin.sin_port=pse->s_port; |
60 |
|
61 |
else if ((sin.sin_port=htons((unsigned short)atoi(service)))==0) |
62 |
@@ -85,7 +87,7 @@ |
63 |
return -1; |
64 |
} |
65 |
|
66 |
- if (phe=gethostbyname(host)) |
67 |
+ if ((phe=gethostbyname(host))) |
68 |
bcopy(phe->h_addr,(char *)&sin.sin_addr,phe->h_length); |
69 |
|
70 |
else if ((sin.sin_addr.s_addr = inet_addr(host))==INADDR_NONE) |
71 |
diff -Nur clients/map.orig/map_main.c clients/map/map_main.c |
72 |
--- clients/map.orig/map_main.c 2007-09-11 15:56:24.838414157 +0100 |
73 |
+++ clients/map/map_main.c 2007-09-11 15:55:58.208896628 +0100 |
74 |
@@ -16,9 +16,11 @@ |
75 |
* for more details. * |
76 |
* * |
77 |
*****************************************************************************/ |
78 |
-#include "forms.h" |
79 |
+#include <forms.h> |
80 |
#include "map.h" |
81 |
#include <sys/timeb.h> |
82 |
+#include <unistd.h> |
83 |
+#include <stdlib.h> |
84 |
|
85 |
extern int connectsock(); |
86 |
extern void handler(); |
87 |
@@ -29,7 +31,7 @@ |
88 |
int main(int argc, char *argv[]) |
89 |
{ |
90 |
int i, skt, x, y, z; |
91 |
- char cmd[16], bufr[625], satnamelist[26][26]; |
92 |
+ char bufr[625], satnamelist[26][26]; |
93 |
const char *ptrsat; |
94 |
FD_map *fd_map; |
95 |
struct timeb tptr; |
96 |
|
97 |
|
98 |
|
99 |
-- |
100 |
gentoo-commits@g.o mailing list |