Fixed compiler-warnings for gcc-4... mostly type-checking

git-svn-id: https://proxytunnel.svn.sourceforge.net/svnroot/proxytunnel/trunk/proxytunnel@90 bc163920-b10d-0410-b2c5-a5491ca2ceef
This commit is contained in:
Mark Janssen 2006-02-06 11:36:53 +00:00
parent e2b31bddcc
commit f51bdbda82
7 changed files with 13 additions and 11 deletions

6
http.c
View file

@ -45,7 +45,9 @@ void analyze_HTTP()
*/
while (strncmp( p, "HTTP/", 5) != 0 )
{
readline(); p = strtok( buf, " "); }
readline();
p = strtok( buf, " ");
}
if (strcmp( p, "HTTP/1.0" ) != 0 && strcmp( p, "HTTP/1.1" ) != 0)
{
@ -65,7 +67,7 @@ void analyze_HTTP()
do {
readline();
if (strncmp( buf, "Proxy-Authenticate: NTLM ", 25) == 0) {
if (parse_type2(&buf[25]) < 0)
if (parse_type2((unsigned char *)&buf[25]) < 0)
exit(1);
}
} while ( strcmp( buf, "\r\n" ) != 0 );