summaryrefslogtreecommitdiffstats
path: root/lib/libc/inet/inet_neta.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libc/inet/inet_neta.c')
-rw-r--r--lib/libc/inet/inet_neta.c17
1 files changed, 12 insertions, 5 deletions
diff --git a/lib/libc/inet/inet_neta.c b/lib/libc/inet/inet_neta.c
index bc3b601..872ad48 100644
--- a/lib/libc/inet/inet_neta.c
+++ b/lib/libc/inet/inet_neta.c
@@ -16,8 +16,10 @@
*/
#if defined(LIBC_SCCS) && !defined(lint)
-static const char rcsid[] = "$Id: inet_neta.c,v 1.2.18.1 2005/04/27 05:00:53 sra Exp $";
+static const char rcsid[] = "$Id: inet_neta.c,v 1.1.206.1 2004/03/09 08:33:33 marka Exp $";
#endif
+#include <sys/cdefs.h>
+__FBSDID("$FreeBSD$");
#include "port_before.h"
@@ -38,10 +40,10 @@ static const char rcsid[] = "$Id: inet_neta.c,v 1.2.18.1 2005/04/27 05:00:53 sra
# define SPRINTF(x) ((size_t)sprintf x)
#endif
-/*%
+/*
* char *
* inet_neta(src, dst, size)
- * format a u_long network number into presentation format.
+ * format an in_addr_t network number into presentation format.
* return:
* pointer to dst, or NULL if an error occurred (check errno).
* note:
@@ -51,7 +53,7 @@ static const char rcsid[] = "$Id: inet_neta.c,v 1.2.18.1 2005/04/27 05:00:53 sra
*/
char *
inet_neta(src, dst, size)
- u_long src;
+ in_addr_t src;
char *dst;
size_t size;
{
@@ -86,4 +88,9 @@ inet_neta(src, dst, size)
return (NULL);
}
-/*! \file */
+/*
+ * Weak aliases for applications that use certain private entry points,
+ * and fail to include <arpa/inet.h>.
+ */
+#undef inet_neta
+__weak_reference(__inet_neta, inet_neta);
OpenPOWER on IntegriCloud