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.
+ * nss/nsswitch.c (nss_new_service): Conditionalize definition and
+ declaration on [!DO_STATIC_NSS || SHARED], matching its only caller.
+ (__nss_lookup_function): Conditionalize label remove_from_tree on
+ [!DO_STATIC_NSS || SHARED], matching its only use.
2012-09-28 David S. Miller <davem@davemloft.net>
static name_database_entry *nss_getline (char *line) internal_function;
static service_user *nss_parse_service_list (const char *line)
internal_function;
+#if !defined DO_STATIC_NSS || defined SHARED
static service_library *nss_new_service (name_database *database,
const char *name) internal_function;
+#endif
/* Declare external database variables. */
known_function *known = malloc (sizeof *known);
if (! known)
{
+#if !defined DO_STATIC_NSS || defined SHARED
remove_from_tree:
+#endif
/* Oops. We can't instantiate this node properly.
Remove it from the tree. */
__tdelete (&fct_name, &ni->known, &known_compare);