artulab
projects
/
openbsd
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1a0a232
)
Only compile _ng_print() #ifdef DEBUG_NG; ok millert@
author
miod
<miod@openbsd.org>
Fri, 17 Feb 2023 18:00:11 +0000
(18:00 +0000)
committer
miod
<miod@openbsd.org>
Fri, 17 Feb 2023 18:00:11 +0000
(18:00 +0000)
lib/libc/gen/getnetgrent.c
patch
|
blob
|
history
diff --git
a/lib/libc/gen/getnetgrent.c
b/lib/libc/gen/getnetgrent.c
index
8088f42
..
a1cc31c
100644
(file)
--- a/
lib/libc/gen/getnetgrent.c
+++ b/
lib/libc/gen/getnetgrent.c
@@
-1,4
+1,4
@@
-/* $OpenBSD: getnetgrent.c,v 1.3
0 2023/01/04 13:00:11 jsg Exp $
*/
+/* $OpenBSD: getnetgrent.c,v 1.3
1 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
/*