Use pa_* instead of generic functions to improve portability

This commit is contained in:
Maarten Bosmans 2011-02-17 11:50:10 +01:00
parent f2a9fd779e
commit aebf66bef6
4 changed files with 15 additions and 14 deletions

View file

@ -29,6 +29,7 @@
#ifndef HAVE_INET_NTOP
#include <pulsecore/core-util.h>
#include <pulsecore/macro.h>
#include <pulsecore/socket.h>
#include "inet_ntop.h"
@ -39,7 +40,8 @@ const char *inet_ntop(int af, const void *src, char *dst, socklen_t cnt) {
struct in6_addr *in6 = (struct in6_addr*)src;
#endif
assert(src && dst);
pa_assert(src);
pa_assert(dst);
switch (af) {
case AF_INET: