mirror of
https://github.com/opnsense/src.git
synced 2026-06-11 09:41:03 -04:00
_nss_cache_cycle_prevention_function doesn't actually need to be a function,
it just needs to have external linkage. MFC after: 1 week
This commit is contained in:
parent
1dc0e27d12
commit
0309c35e84
1 changed files with 10 additions and 10 deletions
|
|
@ -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[])
|
||||
|
|
|
|||
Loading…
Reference in a new issue