summaryrefslogtreecommitdiff
path: root/source4/lib/replace/getaddrinfo.c
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2007-10-25 06:53:38 +0200
committerStefan Metzmacher <metze@samba.org>2007-12-21 05:43:29 +0100
commit88f6c5a1d2c337ffe7505e20b96a6b47dab1c063 (patch)
tree4ad31b42c6255c63cb0df157f6d64c78ffdde3e5 /source4/lib/replace/getaddrinfo.c
parent1f680ef45d8ff95aca2834cd9005f03409019efd (diff)
downloadsamba-88f6c5a1d2c337ffe7505e20b96a6b47dab1c063.tar.gz
samba-88f6c5a1d2c337ffe7505e20b96a6b47dab1c063.tar.bz2
samba-88f6c5a1d2c337ffe7505e20b96a6b47dab1c063.zip
r25724: - include getaddrinfo.h after we have defined struct addrinfo
- use rep_ instead of pg_ as prefix in getaddrinfo.[ch] - define HAVE_<name> macros when we replace functions metze (This used to be commit 57d5cf4b5fe8885b1375059aa143c9c71d2503b4)
Diffstat (limited to 'source4/lib/replace/getaddrinfo.c')
-rw-r--r--source4/lib/replace/getaddrinfo.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/source4/lib/replace/getaddrinfo.c b/source4/lib/replace/getaddrinfo.c
index 519c30066b..3cc1214b0e 100644
--- a/source4/lib/replace/getaddrinfo.c
+++ b/source4/lib/replace/getaddrinfo.c
@@ -253,7 +253,7 @@ static int getaddr_info_name(const char *node,
* Bugs: - servname can only be a number, not text.
*/
-int getaddrinfo(const char *node,
+int rep_getaddrinfo(const char *node,
const char *service,
const struct addrinfo * hintp,
struct addrinfo ** res)
@@ -315,7 +315,7 @@ int getaddrinfo(const char *node,
}
-void freeaddrinfo(struct addrinfo *res)
+void rep_freeaddrinfo(struct addrinfo *res)
{
struct addrinfo *next = NULL;
@@ -332,7 +332,7 @@ void freeaddrinfo(struct addrinfo *res)
}
-const char *gai_strerror(int errcode)
+const char *rep_gai_strerror(int errcode)
{
#ifdef HAVE_HSTRERROR
int hcode;
@@ -468,7 +468,7 @@ static int getservicenameinfo(const struct sockaddr *sa,
*
* Bugs: - No IPv6 support.
*/
-int getnameinfo(const struct sockaddr *sa, socklen_t salen,
+int rep_getnameinfo(const struct sockaddr *sa, socklen_t salen,
char *node, size_t nodelen,
char *service, size_t servicelen, int flags)
{