From 5fa615f870dccfac865fd64a04351e2dbd6f84ae Mon Sep 17 00:00:00 2001 From: miod Date: Fri, 17 Feb 2023 18:00:11 +0000 Subject: [PATCH] Only compile _ng_print() #ifdef DEBUG_NG; ok millert@ --- lib/libc/gen/getnetgrent.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/libc/gen/getnetgrent.c b/lib/libc/gen/getnetgrent.c index 8088f42669a..a1cc31cfb46 100644 --- a/lib/libc/gen/getnetgrent.c +++ b/lib/libc/gen/getnetgrent.c @@ -1,4 +1,4 @@ -/* $OpenBSD: getnetgrent.c,v 1.30 2023/01/04 13:00:11 jsg Exp $ */ +/* $OpenBSD: getnetgrent.c,v 1.31 2023/02/17 18:00:11 miod Exp $ */ /* * Copyright (c) 1994 Christos Zoulas @@ -517,12 +517,14 @@ _ng_makekey(const char *s1, const char *s2, size_t len) return buf; } +#ifdef DEBUG_NG static void _ng_print(char *buf, size_t len, const struct netgroup *ng) { (void) snprintf(buf, len, "(%s,%s,%s)", _NG_EMPTY(ng->ng_host), _NG_EMPTY(ng->ng_user), _NG_EMPTY(ng->ng_domain)); } +#endif /* -- 2.20.1