Browse Source

core: parser/sdp - rename parameter to suggest better its role

Daniel-Constantin Mierla 1 year ago
parent
commit
b03ec73589
1 changed files with 7 additions and 7 deletions
  1. 7 7
      src/core/parser/sdp/sdp_helpr_funcs.c

+ 7 - 7
src/core/parser/sdp/sdp_helpr_funcs.c

@@ -735,14 +735,13 @@ int extract_sess_version(str *oline, str *sess_version)
  * Auxiliary for some functions.
  * Returns pointer to first character of found line, or NULL if no such line.
  */
-
-char *find_sdp_line(char *p, char *plimit, char linechar)
+char *find_sdp_line(char *pstart, char *plimit, char linechar)
 {
 	static char linehead[3] = "x=";
 	char *cp, *cp1;
 	linehead[0] = linechar;
 	/* Iterate through body */
-	cp = p;
+	cp = pstart;
 	for(;;) {
 		if(cp >= plimit)
 			return NULL;
@@ -767,13 +766,14 @@ char *find_sdp_line(char *p, char *plimit, char linechar)
 }
 
 
-/* This function assumes p points to a line of requested type. */
-char *find_next_sdp_line(char *p, char *plimit, char linechar, char *defptr)
+/* This function assumes pstart points to a line of requested type. */
+char *find_next_sdp_line(
+		char *pstart, char *plimit, char linechar, char *defptr)
 {
 	char *t;
-	if(p >= plimit || plimit - p < 3)
+	if(pstart >= plimit || plimit - pstart < 3)
 		return defptr;
-	t = find_sdp_line(p + 2, plimit, linechar);
+	t = find_sdp_line(pstart + 2, plimit, linechar);
 	return t ? t : defptr;
 }