From 789cf8054535f4106b240703b8698f254e7d367c Mon Sep 17 00:00:00 2001 From: deraadt Date: Thu, 3 Apr 1997 05:53:46 +0000 Subject: [PATCH] use MATCH() --- lib/libc/net/res_init.c | 6 +++--- 1 file 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); -- 2.20.1