summary refs log tree commit diff
path: root/nss
diff options
context:
space:
mode:
authorAndreas Jaeger <aj@suse.de>2000-12-27 19:58:36 +0000
committerAndreas Jaeger <aj@suse.de>2000-12-27 19:58:36 +0000
commited073f0e6249dc1bcecb3f72fa941d01b516be3f (patch)
tree8dfe5133dfe2d1516103f7f46cca1ff44bdb4f01 /nss
parent27ee0a559513db0d0e650761b6f4268b39199c74 (diff)
downloadglibc-ed073f0e6249dc1bcecb3f72fa941d01b516be3f.tar.gz
glibc-ed073f0e6249dc1bcecb3f72fa941d01b516be3f.tar.xz
glibc-ed073f0e6249dc1bcecb3f72fa941d01b516be3f.zip
Add prototype for foo.
Diffstat (limited to 'nss')
-rw-r--r--nss/XXX-lookup.c4
-rw-r--r--nss/nss_files/files-ethers.c11
2 files changed, 5 insertions, 10 deletions
diff --git a/nss/XXX-lookup.c b/nss/XXX-lookup.c
index dc7a663abd..e812d9a548 100644
--- a/nss/XXX-lookup.c
+++ b/nss/XXX-lookup.c
@@ -1,4 +1,4 @@
-/* Copyright (C) 1996, 1997, 1999 Free Software Foundation, Inc.
+/* Copyright (C) 1996, 1997, 1999, 2000  Free Software Foundation, Inc.
    This file is part of the GNU C Library.
    Contributed by Ulrich Drepper <drepper@cygnus.com>, 1996.
 
@@ -55,6 +55,8 @@
 
 service_user *DATABASE_NAME_SYMBOL;
 
+extern int DB_LOOKUP_FCT (service_user **ni, const char *fct_name, void **fctp);
+
 int
 DB_LOOKUP_FCT (service_user **ni, const char *fct_name, void **fctp)
 {
diff --git a/nss/nss_files/files-ethers.c b/nss/nss_files/files-ethers.c
index 3a6dcbc76e..88de6d499a 100644
--- a/nss/nss_files/files-ethers.c
+++ b/nss/nss_files/files-ethers.c
@@ -17,16 +17,9 @@
    Boston, MA 02111-1307, USA.  */
 
 #include <string.h>
+#include <netinet/ether.h>
 #include <netinet/if_ether.h>
 
-/* Because the `ethers' lookup does not fit so well in the scheme so
-   we define a dummy struct here which helps us to use the available
-   functions.  */
-struct etherent
-{
-  const char *e_name;
-  struct ether_addr e_addr;
-};
 struct etherent_data {};
 
 #define ENTNAME		etherent
@@ -72,4 +65,4 @@ DB_LOOKUP (ntohost, 18, ("=%x:%x:%x:%x:%x:%x",
 	     if (memcmp (&result->e_addr, addr,
 			 sizeof (struct ether_addr)) == 0)
 	       break;
-	   }, struct ether_addr *addr)
+	   }, const struct ether_addr *addr)