From: miod Date: Fri, 17 Feb 2023 18:00:11 +0000 (+0000) Subject: Only compile _ng_print() #ifdef DEBUG_NG; ok millert@ X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=5fa615f870dccfac865fd64a04351e2dbd6f84ae;p=openbsd Only compile _ng_print() #ifdef DEBUG_NG; ok millert@ --- 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 /*