diff options
author | Miod Vallat <miod@cvs.openbsd.org> | 2023-02-17 18:00:12 +0000 |
---|---|---|
committer | Miod Vallat <miod@cvs.openbsd.org> | 2023-02-17 18:00:12 +0000 |
commit | 5699702164e73376829edba182200e645b6431f4 (patch) | |
tree | ff9c20df37b541f412183dade891f299e49cf754 /lib/libc | |
parent | aac4f34a2132d287fae403cde5101ce1473d0da4 (diff) |
Only compile _ng_print() #ifdef DEBUG_NG; ok millert@
Diffstat (limited to 'lib/libc')
-rw-r--r-- | lib/libc/gen/getnetgrent.c | 4 |
1 files changed, 3 insertions, 1 deletions
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 /* |