From ed073f0e6249dc1bcecb3f72fa941d01b516be3f Mon Sep 17 00:00:00 2001 From: Andreas Jaeger Date: Wed, 27 Dec 2000 19:58:36 +0000 Subject: Add prototype for foo. --- nss/nss_files/files-ethers.c | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) (limited to 'nss/nss_files') diff --git a/nss/nss_files/files-ethers.c b/nss/nss_files/files-ethers.c index 3a6dcbc..88de6d4 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 +#include #include -/* 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) -- cgit v1.1