summaryrefslogtreecommitdiff
path: root/compat
diff options
context:
space:
mode:
authorArthur de Jong <arthur@arthurdejong.org>2010-09-29 19:01:42 +0000
committerArthur de Jong <arthur@arthurdejong.org>2010-09-29 19:01:42 +0000
commit3c436eecebaf3f66c3a2d735f6c567d8eaa75a70 (patch)
treeeb860fd470c5ee3d4e796fbe7dbeb82bd17521ca /compat
parent25ae82f933be9668aaf4c1fe7a53f01ff1defab8 (diff)
fix definitions of ether_aton() and ether_ntoa()
git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd@1226 ef36b2f9-881f-0410-afb5-c4e39611909c
Diffstat (limited to 'compat')
-rw-r--r--compat/ether.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/compat/ether.c b/compat/ether.c
index 0f33481..6ab052d 100644
--- a/compat/ether.c
+++ b/compat/ether.c
@@ -1,7 +1,7 @@
/*
ether.c - useful ethernet functions for systems lacking those
- Copyright (C) 2008, 2009 Arthur de Jong
+ Copyright (C) 2008, 2009, 2010 Arthur de Jong
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
@@ -39,7 +39,7 @@
/* we define ether_ntoa() here because on some platforms the function is
underfined */
-char *ether_ntoa(struct ether_addr *e);
+extern char *ether_ntoa(const struct ether_addr *e);
char *ether_ntoa_r(const struct ether_addr *addr,char *buf)
{
@@ -56,7 +56,7 @@ char *ether_ntoa_r(const struct ether_addr *addr,char *buf)
/* we define ether_aton() here because on some platforms the function is
underfined */
-struct ether_addr *ether_aton(char *s);
+extern struct ether_addr *ether_aton(const char *s);
struct ether_addr *ether_aton_r(const char *asc,struct ether_addr *addr)
{