File: 04_ftbfs-eglibc-2-10

package info (click to toggle)
ffproxy 1.6-12
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, buster
  • size: 884 kB
  • sloc: ansic: 2,310; asm: 578; sh: 425; makefile: 91
file content (51 lines) | stat: -rw-r--r-- 1,477 bytes parent folder | download | duplicates (2)
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
Description: Patch which fix FTBFS with eglibc 2.10
Author: Nicolas Van Wambeke <nicolasvw@free.fr>
Bug-Debian: http://bugs.debian.org/547402
Last-Update: 2009-09-20
--- a/request.c
+++ b/request.c
@@ -49,7 +49,7 @@
 
 static int      read_header(int, struct req *);
 static char     sgetc(int);
-static size_t   getline(int, char[], int);
+static size_t   get_line(int, char[], int);
 static int      do_request(int, struct req *);
 
 void
@@ -63,7 +63,7 @@
 	(void) memset(&r, 0, sizeof(r));
 	r.cl = clinfo;
 
-	if (getline(cl, buf, sizeof(buf)) < 1)
+	if (get_line(cl, buf, sizeof(buf)) < 1)
 		*buf = '\0';
 
 	if ((http_url(&r, buf)) == 0) {
@@ -189,7 +189,7 @@
 	char           *b, *p;
 
 	i = 0;
-	while ((len = getline(cl, buf, sizeof(buf))) > 0 && i < MAX_HEADERS - 1) {
+	while ((len = get_line(cl, buf, sizeof(buf))) > 0 && i < MAX_HEADERS - 1) {
 		b = buf;
 		while (isspace((int) *b) && *(b++) != '\0');
 		if (*b == '\0')
@@ -228,7 +228,7 @@
 }
 
 static          size_t
-getline(int s, char buf[], int len)
+get_line(int s, char buf[], int len)
 {
 	int             c;
 	size_t          i;
@@ -493,7 +493,7 @@
 	}
 	if (r->type != CONNECT) {
 		i = 0;
-		while ((len = getline(s, buf, sizeof(buf))) > 0 && i < MAX_HEADERS - 1) {
+		while ((len = get_line(s, buf, sizeof(buf))) > 0 && i < MAX_HEADERS - 1) {
 			DEBUG(("do_request() => got remote header line: (%s)", buf));
 			r->header[i] = (char *) my_alloc(len + 1);
 			(void) strcpy(r->header[i++], buf);