Added a missing exclamation sign for strncmp

This commit is contained in:
salva 2006-01-22 21:55:19 +00:00
parent 2aec823caa
commit 6066d65b03

View File

@ -81,7 +81,7 @@ ixp_connect_sock(char *address)
addr = &p[1]; addr = &p[1];
type = address; /* unix, tcp */ type = address; /* unix, tcp */
if(strncmp(type, "unix", 5)) if(!strncmp(type, "unix", 5))
return connect_unix_sock(addr); return connect_unix_sock(addr);
else if(!strncmp(type, "tcp", 4)) else if(!strncmp(type, "tcp", 4))
return connect_tcp_sock(addr); return connect_tcp_sock(addr);