1 |
ssuominen 09/06/19 17:17:51 |
2 |
|
3 |
Added: cdtool-2.1.8-glibc-2.10.patch |
4 |
Log: |
5 |
Fix compile with glibc 2.10 |
6 |
(Portage version: 2.2_rc33/cvs/Linux x86_64) |
7 |
|
8 |
Revision Changes Path |
9 |
1.1 media-sound/cdtool/files/cdtool-2.1.8-glibc-2.10.patch |
10 |
|
11 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-sound/cdtool/files/cdtool-2.1.8-glibc-2.10.patch?rev=1.1&view=markup |
12 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-sound/cdtool/files/cdtool-2.1.8-glibc-2.10.patch?rev=1.1&content-type=text/plain |
13 |
|
14 |
Index: cdtool-2.1.8-glibc-2.10.patch |
15 |
=================================================================== |
16 |
diff -ur cdtool-2.1.8.orig/cdown.c cdtool-2.1.8/cdown.c |
17 |
--- cdtool-2.1.8.orig/cdown.c 2005-10-17 22:11:59.000000000 +0300 |
18 |
+++ cdtool-2.1.8/cdown.c 2009-06-19 20:15:57.000000000 +0300 |
19 |
@@ -325,7 +325,7 @@ |
20 |
} |
21 |
|
22 |
/************************************************************************/ |
23 |
-/* Procedure: getline |
24 |
+/* Procedure: get_line |
25 |
* Purpose: read a line of text from the CDDB server |
26 |
* |
27 |
* Inputs: |
28 |
@@ -333,14 +333,14 @@ |
29 |
* Returns: The line of text |
30 |
* Notes: |
31 |
* 1. The CDDB databases use \r\n to end lines. All lines returned |
32 |
- * by getline() have the \r and \n stripped. |
33 |
+ * by get_line() have the \r and \n stripped. |
34 |
* 2. Non-reentrant: the memory buffer returned previously is |
35 |
* recycled |
36 |
* 3. Do NOT modify the contents of the returned buffer past the |
37 |
* NULL - data from the network is stored there |
38 |
*/ |
39 |
/************************************************************************/ |
40 |
-char *getline(void) { |
41 |
+char *get_line(void) { |
42 |
static char *buffer = NULL; |
43 |
static char *lastline = NULL; |
44 |
static int buffered = 0; |
45 |
@@ -451,7 +451,7 @@ |
46 |
char *cdtitle; |
47 |
|
48 |
netprintf(sock, "cddb read %s %s\n", categ, discid); |
49 |
- message = getline(); |
50 |
+ message = get_line(); |
51 |
switch (atoi(message)) { |
52 |
case 401: fprintf(stderr, "error: entry not found\n"); return; |
53 |
case 402: fprintf(stderr, "error: server error\n"); return; |
54 |
@@ -461,13 +461,13 @@ |
55 |
default: fprintf(stderr, "error: bad message: %s\n", message); return; |
56 |
} |
57 |
while (iRawMode) { /* infinite loop, or skip if !iRawMode */ |
58 |
- message = getline(); |
59 |
+ message = get_line(); |
60 |
if (!strcmp (message, ".")) |
61 |
return; |
62 |
printf ("%s\r\n", message); |
63 |
} |
64 |
do { |
65 |
- message = getline(); |
66 |
+ message = get_line(); |
67 |
firstword = strchr(message, '='); |
68 |
if (firstword != NULL) { |
69 |
*firstword = '\0'; |
70 |
@@ -511,7 +511,7 @@ |
71 |
int input = 0; |
72 |
int exact = 1; |
73 |
|
74 |
- message = getline(); |
75 |
+ message = get_line(); |
76 |
switch (atoi(message)) { |
77 |
case 403: fprintf(stderr, "error: database entry is corrupt\n"); return; |
78 |
case 409: fprintf(stderr, "error: no handshake\n"); return; |
79 |
@@ -523,7 +523,7 @@ |
80 |
if (!exact) { |
81 |
fprintf(stderr, "CD has no exact match\n 0: None\n"); |
82 |
do { |
83 |
- message = getline(); |
84 |
+ message = get_line(); |
85 |
if (strcmp(message, ".") != 0) { |
86 |
matches = realloc(matches, sizeof(char*) * (++count)); |
87 |
fprintf(stderr, " %d: ", count); printcd(message); |
88 |
@@ -628,15 +628,15 @@ |
89 |
void parsesites(void) { |
90 |
char *buffer; |
91 |
|
92 |
- buffer = getline(); |
93 |
+ buffer = get_line(); |
94 |
switch (atoi(buffer)) { |
95 |
case 210: break; /* OK */ |
96 |
case 401: fprintf(stderr, "error: no site list available\n"); return; |
97 |
} |
98 |
- buffer = getline(); |
99 |
+ buffer = get_line(); |
100 |
do { |
101 |
printf("%s\n", buffer); |
102 |
- } while (strcmp(buffer = getline(), ".") != 0); |
103 |
+ } while (strcmp(buffer = get_line(), ".") != 0); |
104 |
} |
105 |
|
106 |
/************************************************************************/ |
107 |
@@ -755,7 +755,7 @@ |
108 |
exit(3); |
109 |
} |
110 |
|
111 |
- bleh = getline(); |
112 |
+ bleh = get_line(); |
113 |
if (!signon(bleh)) { |
114 |
errormsg("%s: signon error on host %s", progname, pszHost); |
115 |
close(sock); |
116 |
@@ -773,7 +773,7 @@ |
117 |
getuname(), gethname(), progname, VERSIONSTRING); |
118 |
|
119 |
/* get welcome message */ |
120 |
- bleh = getline(); |
121 |
+ bleh = get_line(); |
122 |
if (!welcome(bleh)) { |
123 |
errormsg("%s: bad welcome message [%s]", progname, bleh); |
124 |
close(sock); |