mirror of
https://github.com/0intro/wmii
synced 2024-11-22 22:02:30 +03:00
Added a missing exclamation sign for strncmp
This commit is contained in:
parent
2aec823caa
commit
6066d65b03
@ -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);
|
||||||
|
Loading…
Reference in New Issue
Block a user