diff options
author | Matthieu Herrb <matthieu@cvs.openbsd.org> | 2012-04-08 14:50:53 +0000 |
---|---|---|
committer | Matthieu Herrb <matthieu@cvs.openbsd.org> | 2012-04-08 14:50:53 +0000 |
commit | bb3b36841d2b4089a8d4f79271d692ef9a73b82a (patch) | |
tree | 2dda85047859928ab79bce36976291e9df25930a /lib/libxtrans/transport.c | |
parent | 4afe8ef8d3591a5d3e58c6c61de3185b2b0f34d1 (diff) |
Update to xtrans 1.2.7
Diffstat (limited to 'lib/libxtrans/transport.c')
-rw-r--r-- | lib/libxtrans/transport.c | 22 |
1 files changed, 13 insertions, 9 deletions
diff --git a/lib/libxtrans/transport.c b/lib/libxtrans/transport.c index 5131d99e4..2cb88825e 100644 --- a/lib/libxtrans/transport.c +++ b/lib/libxtrans/transport.c @@ -47,19 +47,19 @@ from The Open Group. * CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ - -#ifdef XSERV_t -#include "os.h" -#else #include <stdlib.h> -#define xalloc(_size) malloc(_size) -#define xcalloc(_num,_size) calloc(_num,_size) -#define xrealloc(_ptr,_size) realloc(_ptr,_size) -#define xfree(_ptr) free(_ptr) -#endif + +#define XTRANS_TRANSPORT_C /* used to flag Xtransint.h that it's being used + here, not just #included in another file */ #include "Xtransint.h" +#ifdef __clang__ +#pragma clang diagnostic push +#pragma clang diagnostic ignored "-Wformat-nonliteral" +#pragma clang diagnostic ignored "-Wdeprecated-declarations" +#endif + #ifdef LOCALCONN #include "Xtranslcl.c" #endif @@ -71,3 +71,7 @@ from The Open Group. #endif #include "Xtrans.c" #include "Xtransutil.c" + +#ifdef __clang__ +#pragma clang diagnostic pop +#endif |