diff options
author | 1997-04-03 05:53:46 +0000 | |
---|---|---|
committer | 1997-04-03 05:53:46 +0000 | |
commit | 789cf8054535f4106b240703b8698f254e7d367c (patch) | |
tree | 559a98c5cc85590ed25ebed497df5d111b438804 /lib/libc | |
parent | if dns lookup fails, still honour _res.lookups[] (diff) | |
download | wireguard-openbsd-789cf8054535f4106b240703b8698f254e7d367c.tar.xz wireguard-openbsd-789cf8054535f4106b240703b8698f254e7d367c.zip |
use MATCH()
Diffstat (limited to 'lib/libc')
-rw-r--r-- | lib/libc/net/res_init.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/libc/net/res_init.c b/lib/libc/net/res_init.c index 46b93611269..81ea50b0fb2 100644 --- a/lib/libc/net/res_init.c +++ b/lib/libc/net/res_init.c @@ -1,4 +1,4 @@ -/* $OpenBSD: res_init.c,v 1.11 1997/03/13 19:07:38 downsj Exp $ */ +/* $OpenBSD: res_init.c,v 1.12 1997/04/03 05:53:46 deraadt Exp $ */ /* * ++Copyright++ 1985, 1989, 1993 @@ -60,7 +60,7 @@ static char sccsid[] = "@(#)res_init.c 8.1 (Berkeley) 6/7/93"; static char rcsid[] = "$From: res_init.c,v 8.7 1996/09/28 06:51:07 vixie Exp $"; #else -static char rcsid[] = "$OpenBSD: res_init.c,v 1.11 1997/03/13 19:07:38 downsj Exp $"; +static char rcsid[] = "$OpenBSD: res_init.c,v 1.12 1997/04/03 05:53:46 deraadt Exp $"; #endif #endif /* LIBC_SCCS and not lint */ @@ -269,7 +269,7 @@ res_init() continue; } /* lookup types */ - if (!strncmp(buf, "lookup", sizeof("lookup") -1)) { + if (MATCH(buf, "lookup")) { char *sp = NULL; bzero(_res.lookups, sizeof _res.lookups); |