From f524a1720af5bacf807684d890afa85af4cbe5b7 Mon Sep 17 00:00:00 2001 From: nadiramra Date: Tue, 1 Jun 2010 16:36:08 +0000 Subject: AXIS2C-1467 Dangerous macros defs in axutil_unix.h and axutil_windows.h git-svn-id: http://svn.apache.org/repos/asf/axis/axis2/c/core/trunk@950151 13f79535-47bb-0310-9956-ffa450edef68 --- util/include/platforms/unix/axutil_unix.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'util/include/platforms/unix') diff --git a/util/include/platforms/unix/axutil_unix.h b/util/include/platforms/unix/axutil_unix.h index 7a7e38c..bb3c08f 100644 --- a/util/include/platforms/unix/axutil_unix.h +++ b/util/include/platforms/unix/axutil_unix.h @@ -141,7 +141,7 @@ extern "C" #define AXIS2_STRRCHR(x, y) (strrchr(x, y)) -#define AXIS2_PLATFORM_SLEEP(x) sleep(0); +#define AXIS2_PLATFORM_SLEEP(x) sleep(0) /** sleep function abstraction */ #define AXIS2_SLEEP sleep @@ -253,7 +253,7 @@ extern "C" #define AXIS2_INADDR_NONE (in_addr_t)-1 #define axis2_unsigned_short_t uint16_t #define AXIS2_CLOSE_SOCKET(sock) close(sock) -#define AXIS2_CLOSE_SOCKET_ON_EXIT(sock) fcntl(sock,F_SETFD, FD_CLOEXEC); +#define AXIS2_CLOSE_SOCKET_ON_EXIT(sock) fcntl(sock,F_SETFD, FD_CLOEXEC) #define axis2_socket_len_t socklen_t #define AXIS2_SHUT_WR SHUT_WR @@ -262,7 +262,7 @@ extern "C" /** minizip functions */ #define axis2_fill_win32_filefunc(ffunc) -#define AXIS2_UNZOPEN2(zipfilename,ffunc) unzOpen2(zipfilename,NULL); memset(&ffunc, 0, sizeof(ffunc)); +#define AXIS2_UNZOPEN2(zipfilename,ffunc) do { unzOpen2(zipfilename,NULL); memset(&ffunc, 0, sizeof(ffunc)); } while (0) /** * handling variable number of arguments (for log.c) -- cgit v1.1-32-gdbae