libixp

git clone git://oldgit.suckless.org/libixp/
Log | Files | Refs | LICENSE

commit 9494a601146f67b8a6e4c9a0622040c462a6669f
parent 5165675d6a893d7edc061226a47a30b87a384dcb
Author: Kris Maglione <jg@suckless.org>
Date:   Wed, 28 Mar 2007 14:37:59 -0400

Fix strcmp in socket.c.

Diffstat:
libixp/socket.c | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/libixp/socket.c b/libixp/socket.c @@ -29,7 +29,7 @@ get_port(char *addr) { char *s, *end; int port; - s = strrchr(addr, '!'); + s = strchr(addr, '!'); if(s == nil) { errstr = "no port provided"; return -1; @@ -214,7 +214,7 @@ lookup(char *address, addrtab *tab) { else { *addr++ = '\0'; for(; tab->type; tab++) - if(strcmp(tab->type, type)) break; + if(strcmp(tab->type, type) == 0) break; if(tab->type == nil) errstr = "unsupported address type"; else