[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; return;
} }
rc = read(fd, &buf, 4); printf("------> parsing\n");
if (rc != 4) { analyze_file(fd, ntohl(entry.length), offset);
perror("peek failed"); printf("<------ parsing\n");
return;
}
printf("FOO %.4s\n", buf);
} }
} }