From: Guillem Jover Date: Fri, 11 Dec 2009 22:06:27 +0000 (+0100) Subject: Deprecate X-Git-Tag: 0.2.0~18 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4d17a18db559a3e3485d049cddf808090f38e8be;p=thirdparty%2Flibbsd.git Deprecate 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. --- diff --git a/Versions b/Versions index 3fc25dc..24548ca 100644 --- 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; diff --git a/include/bsd/inet.h b/include/bsd/inet.h index 1f6e597..0e98548 100644 --- a/include/bsd/inet.h +++ b/include/bsd/inet.h @@ -27,12 +27,9 @@ #ifndef LIBBSD_INET_H #define LIBBSD_INET_H -#include -#include +#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 #endif