mirror of
https://github.com/proxytunnel/proxytunnel.git
synced 2026-01-23 02:34:59 +00:00
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:
parent
e2b31bddcc
commit
f51bdbda82
7 changed files with 13 additions and 11 deletions
6
http.c
6
http.c
|
|
@ -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 );
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue