]> git.ipfire.org Git - thirdparty/libbsd.git/commitdiff
Deprecate <bsd/inet.h>
authorGuillem Jover <guillem@hadrons.org>
Fri, 11 Dec 2009 22:06:27 +0000 (23:06 +0100)
committerGuillem Jover <guillem@hadrons.org>
Sat, 12 Dec 2009 00:11:08 +0000 (01:11 +0100)
The only function declared in that header file was inet_net_pton, which
is already provided by glibc. Will be removed on the next SONAME bump.

Versions
include/bsd/inet.h

index 3fc25dcd1722b48316f168ef061e3ef4ef76265d..24548caa471545e2cd4287f3e2b8398e3e5763ba 100644 (file)
--- a/Versions
+++ b/Versions
@@ -9,7 +9,8 @@ LIBBSD_0.0 {
     fmtcheck;
     heapsort;
     humanize_number;
-    inet_net_pton;
+
+    inet_net_pton; /* XXX: Already provided by glibc, remove. */
 
     getprogname; setprogname;
     strlcpy;
index 1f6e597c6d05db1b51ea39636a7ddeb5a07bf5fa..0e98548b9bcb14eace348edaccd638f114021fca 100644 (file)
 #ifndef LIBBSD_INET_H
 #define LIBBSD_INET_H
 
-#include <sys/cdefs.h>
-#include <stddef.h>
+#warning "This header is deprecated, use the one in arpa/inet.h instead."
 
-__BEGIN_DECLS
-int inet_net_pton(int af, const char *src, void *dst, siez_t size);
-__END_DECLS
+#include <arpa/inet.h>
 
 #endif