Avoid unused static function warning in nsswitch.c.
authorRoland McGrath <roland@hack.frob.com>
Fri, 28 Sep 2012 20:21:08 +0000 (13:21 -0700)
committerRoland McGrath <roland@hack.frob.com>
Fri, 28 Sep 2012 20:23:00 +0000 (13:23 -0700)
ChangeLog
nss/nsswitch.c

index 2771e4b..48f7515 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2012-09-28  Roland McGrath  <roland@hack.frob.com>
+
+       * nss/nsswitch.c (nss_new_service): Conditionalize definition on
+       [!DO_STATIC_NSS || SHARED], matching its only caller.
+
 2012-09-28  David S. Miller  <davem@davemloft.net>
 
        * sysdeps/sparc/fpu/libm-test-ulps: Update.
index 750cd02..1379553 100644 (file)
@@ -786,6 +786,7 @@ nss_getline (char *line)
 }
 
 
+#if !defined DO_STATIC_NSS || defined SHARED
 static service_library *
 internal_function
 nss_new_service (name_database *database, const char *name)
@@ -810,6 +811,7 @@ nss_new_service (name_database *database, const char *name)
 
   return *currentp;
 }
+#endif
 
 
 #if defined SHARED && defined USE_NSCD