[ipaccess] Start the parser recursively...

* Start parsing the sub SDPs with the same analyze method
This commit is contained in:
Holger Hans Peter Freyther 2009-12-29 18:22:29 +01:00
parent 1029f84435
commit b1414d99c4
1 changed files with 3 additions and 7 deletions

View File

@ -155,13 +155,9 @@ static void analyze_file(int fd, const unsigned int st_size, const unsigned int
return;
}
rc = read(fd, &buf, 4);
if (rc != 4) {
perror("peek failed");
return;
}
printf("FOO %.4s\n", buf);
printf("------> parsing\n");
analyze_file(fd, ntohl(entry.length), offset);
printf("<------ parsing\n");
}
}