Sisyphus repository
Last update: 1 october 2023 | SRPMs: 18631 | Visits: 37561509
en ru br
ALT Linux repos
S:1.6b15-alt1
5.0: 1.5p6-alt1
4.1: 1.5p5-alt3
4.0: 1.5p5-alt3
3.0: 1.5p4-alt1

Group :: System/Servers
RPM: mathopd

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs and FR  Repocop 

Patch: mathopd.getline.patch
Download


diff --git a/mathopd/src/request.c b/mathopd/src/request.c
index fc4b62d..04d36df 100644
--- a/mathopd/src/request.c
+++ b/mathopd/src/request.c
@@ -210,7 +210,7 @@ char *rfctime(time_t t, char *buf)
 	return buf;
 }
 
-static char *getline(struct pool *p, int fold)
+static char *get_line(struct pool *p, int fold)
 {
 	char *s, *olds, *sp, *end;
 	int f;
@@ -247,7 +247,7 @@ static char *getline(struct pool *p, int fold)
 			break;
 		}
 	}
-	log_d("getline: fallen off the end");
+	log_d("get_line: fallen off the end");
 	return 0;
 }
 
@@ -1172,7 +1172,7 @@ static int process_headers(struct request *r)
 	unsigned long cl;
 
 	do {
-		l = getline(&r->cn->header_input, 0);
+		l = get_line(&r->cn->header_input, 0);
 		if (l == 0)
 			return -1;
 	} while (*l == 0);
@@ -1201,7 +1201,7 @@ static int process_headers(struct request *r)
 	if (r->protocol_major && r->protocol_minor)
 		r->cn->keepalive = 1;
 	n = 0;
-	while ((l = getline(&r->cn->header_input, 1)) != 0) {
+	while ((l = get_line(&r->cn->header_input, 1)) != 0) {
 		s = strchr(l, ':');
 		if (s == 0)
 			continue;
 
design & coding: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
current maintainer: Michael Shigorin