]> git.ipfire.org Git - people/arne_f/ipfire-3.x.git/blob - pkgs/net-tools/patches/net-tools-1.60-debug-fix.patch
Change file layout of the makefiles.
[people/arne_f/ipfire-3.x.git] / pkgs / net-tools / patches / net-tools-1.60-debug-fix.patch
1 diff -up net-tools-1.60/lib/rose.c.debug-fix net-tools-1.60/lib/rose.c
2 --- net-tools-1.60/lib/rose.c.debug-fix 2000-03-05 12:26:03.000000000 +0100
3 +++ net-tools-1.60/lib/rose.c 2009-09-01 13:02:20.000000000 +0200
4 @@ -86,7 +86,7 @@ static int ROSE_input(int type, char *bu
5 if (strlen(bufp) != 10) {
6 strcpy(ROSE_errmsg, _("Node address must be ten digits"));
7 #ifdef DEBUG
8 - fprintf(stderr, "rose_input(%s): %s !\n", ROSE_errmsg, orig);
9 + fprintf(stderr, "rose_input(%s): %s !\n", bufp, ROSE_errmsg);
10 #endif
11 errno = EINVAL;
12 return (-1);
13 @@ -99,7 +99,7 @@ static int ROSE_input(int type, char *bu
14
15 /* All done. */
16 #ifdef DEBUG
17 - fprintf(stderr, "rose_input(%s): ", orig);
18 + fprintf(stderr, "rose_input(%s): ", bufp);
19 for (i = 0; i < sizeof(rose_address); i++)
20 fprintf(stderr, "%02X ", sap->sa_data[i] & 0377);
21 fprintf(stderr, "\n");
22 diff -up net-tools-1.60/lib/x25.c.debug-fix net-tools-1.60/lib/x25.c
23 --- net-tools-1.60/lib/x25.c.debug-fix 2000-05-20 20:53:25.000000000 +0200
24 +++ net-tools-1.60/lib/x25.c 2009-09-01 13:06:05.000000000 +0200
25 @@ -81,6 +81,7 @@ X25_input(int type, char *bufp, struct s
26 unsigned char *ptr;
27 char *p;
28 unsigned int sigdigits;
29 + int i;
30
31 sap->sa_family = x25_aftype.af;
32 ptr = ((struct sockaddr_x25 *)sap)->sx25_addr.x25_addr;
33 @@ -90,7 +91,7 @@ X25_input(int type, char *bufp, struct s
34 if (strlen(bufp)>18) {
35 strcpy(X25_errmsg, _("Address can't exceed eighteen digits with sigdigits"));
36 #ifdef DEBUG
37 - fprintf(stderr, "x25_input(%s): %s !\n", X25_errmsg, orig);
38 + fprintf(stderr, "x25_input(%s): %s !\n", bufp, X25_errmsg);
39 #endif
40 errno = EINVAL;
41 return(-1);
42 @@ -108,7 +109,7 @@ X25_input(int type, char *bufp, struct s
43 *p = '/';
44 strcpy(X25_errmsg, _("Invalid address"));
45 #ifdef DEBUG
46 - fprintf(stderr, "x25_input(%s): %s !\n", X25_errmsg, orig);
47 + fprintf(stderr, "x25_input(%s): %s !\n", bufp, X25_errmsg);
48 #endif
49 errno = EINVAL;
50 return(-1);
51 @@ -118,8 +119,8 @@ X25_input(int type, char *bufp, struct s
52
53 /* All done. */
54 #ifdef DEBUG
55 - fprintf(stderr, "x25_input(%s): ", orig);
56 - for (i = 0; i < sizeof(x25_address); i++)
57 + fprintf(stderr, "x25_input(%s): ", bufp);
58 + for (i = 0; i < sizeof(sap->sa_data); i++)
59 fprintf(stderr, "%02X ", sap->sa_data[i] & 0377);
60 fprintf(stderr, "\n");
61 #endif