From owner-svn-src-all@FreeBSD.ORG Fri Jun 12 23:27:31 2009 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 72EAC106564A; Fri, 12 Jun 2009 23:27:31 +0000 (UTC) (envelope-from des@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id 610D58FC19; Fri, 12 Jun 2009 23:27:31 +0000 (UTC) (envelope-from des@FreeBSD.org) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.3/8.14.3) with ESMTP id n5CNRV7J096224; Fri, 12 Jun 2009 23:27:31 GMT (envelope-from des@svn.freebsd.org) Received: (from des@localhost) by svn.freebsd.org (8.14.3/8.14.3/Submit) id n5CNRVTQ096223; Fri, 12 Jun 2009 23:27:31 GMT (envelope-from des@svn.freebsd.org) Message-Id: <200906122327.n5CNRVTQ096223@svn.freebsd.org> From: Dag-Erling Smorgrav Date: Fri, 12 Jun 2009 23:27:31 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r194086 - head/usr.sbin/nscd X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 12 Jun 2009 23:27:31 -0000 Author: des Date: Fri Jun 12 23:27:31 2009 New Revision: 194086 URL: http://svn.freebsd.org/changeset/base/194086 Log: _nss_cache_cycle_prevention_function doesn't actually need to be a function, it just needs to have external linkage. MFC after: 1 week Modified: head/usr.sbin/nscd/nscd.c Modified: head/usr.sbin/nscd/nscd.c ============================================================================== --- head/usr.sbin/nscd/nscd.c Fri Jun 12 23:15:36 2009 (r194085) +++ head/usr.sbin/nscd/nscd.c Fri Jun 12 23:27:31 2009 (r194086) @@ -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[])