summaryrefslogtreecommitdiffstats
path: root/usr.sbin/nscd
diff options
context:
space:
mode:
authordes <des@FreeBSD.org>2009-06-12 23:27:31 +0000
committerdes <des@FreeBSD.org>2009-06-12 23:27:31 +0000
commit70758298f7f5dd8d21972f0511c012a4a9824fba (patch)
tree8ec19c4ead28d53f3fe29a9cc641f1d2fefb3182 /usr.sbin/nscd
parentd305cd8490460faf4e763d10716c77b20f9b0434 (diff)
downloadFreeBSD-src-70758298f7f5dd8d21972f0511c012a4a9824fba.zip
FreeBSD-src-70758298f7f5dd8d21972f0511c012a4a9824fba.tar.gz
_nss_cache_cycle_prevention_function doesn't actually need to be a function,
it just needs to have external linkage. MFC after: 1 week
Diffstat (limited to 'usr.sbin/nscd')
-rw-r--r--usr.sbin/nscd/nscd.c20
1 files changed, 10 insertions, 10 deletions
diff --git a/usr.sbin/nscd/nscd.c b/usr.sbin/nscd/nscd.c
index 34a724d..1739fac 100644
--- a/usr.sbin/nscd/nscd.c
+++ b/usr.sbin/nscd/nscd.c
@@ -573,17 +573,17 @@ get_time_func(struct timeval *time)
}
/*
- * The idea of _nss_cache_cycle_prevention_function is that nsdispatch will
- * search for this symbol in the executable. This symbol is the attribute of
- * the caching daemon. So, if it exists, nsdispatch won't try to connect to
- * the caching daemon and will just ignore the 'cache' source in the
- * nsswitch.conf. This method helps to avoid cycles and organize
- * self-performing requests.
+ * The idea of _nss_cache_cycle_prevention_function is that nsdispatch
+ * will search for this symbol in the executable. This symbol is the
+ * attribute of the caching daemon. So, if it exists, nsdispatch won't try
+ * to connect to the caching daemon and will just ignore the 'cache'
+ * source in the nsswitch.conf. This method helps to avoid cycles and
+ * organize self-performing requests.
+ *
+ * (not actually a function; it used to be, but it doesn't make any
+ * difference, as long as it has external linkage)
*/
-void
-_nss_cache_cycle_prevention_function(void)
-{
-}
+void *_nss_cache_cycle_prevention_function;
int
main(int argc, char *argv[])
OpenPOWER on IntegriCloud