]> git.pld-linux.org Git - packages/ax25-tools.git/blame - ax25-tools-gcc.patch
- patches set for current build tools, separated -gui; release 9
[packages/ax25-tools.git] / ax25-tools-gcc.patch
CommitLineData
ece8d3a6
JB
1--- ax25-tools-0.0.8/tcpip/rip98d.c.orig 2001-05-03 04:03:38.000000000 +0200
2+++ ax25-tools-0.0.8/tcpip/rip98d.c 2023-03-24 19:09:19.852009575 +0100
3@@ -32,7 +32,7 @@ struct dest_struct dest_list[50];
4 int dest_count = 0;
5
6 int debug = FALSE;
7-int restrict = FALSE;
8+int restrict_ = FALSE;
9 int logging = FALSE;
10
11 struct route_struct *first_route = NULL;
12@@ -202,7 +202,7 @@ static int read_routes(void)
13 continue;
14 }
15
16- if (restrict) {
17+ if (restrict_) {
18 if (inet_netof(address) != 44) {
19 if (debug && logging)
20 syslog(LOG_DEBUG, "rejecting route to %s/%ld - not ampr.org\n", inet_ntoa(address), netmask);
21@@ -285,7 +285,7 @@ int main(int argc, char **argv)
22 logging = TRUE;
23 break;
24 case 'r':
25- restrict = TRUE;
26+ restrict_ = TRUE;
27 break;
28 case 't':
29 interval = atoi(optarg) * 60;
30--- ax25-tools-0.0.8/tcpip/rip98d.h.orig 2001-04-10 04:18:40.000000000 +0200
31+++ ax25-tools-0.0.8/tcpip/rip98d.h 2023-03-24 19:10:37.668254675 +0100
32@@ -44,7 +44,7 @@ extern struct dest_struct dest_list[];
33 extern int dest_count;
34
35 extern int debug;
36-extern int restrict;
37+extern int restrict_;
38 extern int logging;
39
40 /* In rip98d.c */
41--- ax25-tools-0.0.8/tcpip/rip98r.c.orig 2001-05-03 03:58:33.000000000 +0200
42+++ ax25-tools-0.0.8/tcpip/rip98r.c 2023-03-24 19:11:37.947928112 +0100
43@@ -127,7 +127,7 @@ void receive_routes(int s)
44 continue;
45 }
46
47- if (restrict) {
48+ if (restrict_) {
49 if (network != 44) {
50 if (debug && logging)
51 syslog(LOG_DEBUG, " route to %s/%d metric %d - rejected\n", inet_ntoa(addr), bits, metric);
52--- ax25-tools-0.0.8/dmascc/dmascc_cfg.c.orig 2001-05-10 12:44:45.000000000 +0200
53+++ ax25-tools-0.0.8/dmascc/dmascc_cfg.c 2023-03-24 19:32:51.854360102 +0100
54@@ -99,7 +99,7 @@ int main(int argc, char *argv[])
55 memset(&param, 0, sizeof(param));
56 param.txpause = -1;
57
58- if strncmp(argv[1], "dmascc", 6) {
59+ if (strncmp(argv[1], "dmascc", 6)) {
60 fprintf(stderr, "invalid interface name.\n");
61 return 5;
62 }
This page took 0.07409 seconds and 4 git commands to generate.