--- libaitrpc/inc/defs.h 2011/08/19 07:39:29 1.2.4.1 +++ libaitrpc/inc/defs.h 2011/08/19 14:04:21 1.2.4.3 @@ -3,7 +3,7 @@ * by Michael Pounov * * $Author: misho $ -* $Id: defs.h,v 1.2.4.1 2011/08/19 07:39:29 misho Exp $ +* $Id: defs.h,v 1.2.4.3 2011/08/19 14:04:21 misho Exp $ * ************************************************************************** The ELWIX and AITNET software is distributed under the following @@ -49,18 +49,16 @@ SUCH DAMAGE. #define DEF_RPC_TIMEOUT 3 -#define BLOB_MAX 1460 -#define BLOBSIZ 1024 #define STRSIZ 256 #define BLOB_FILE "%s/BLOB-%0X" -#define LOGERR { \ +#define LOGERR do { \ rpc_Errno = errno; \ strlcpy(rpc_Error, strerror(errno), STRSIZ); \ - } + } while(0) extern int rpc_Errno;