--- libaitrpc/inc/defs.h 2011/05/02 23:12:08 1.2 +++ libaitrpc/inc/defs.h 2011/08/29 22:37:06 1.3 @@ -3,7 +3,7 @@ * by Michael Pounov * * $Author: misho $ -* $Id: defs.h,v 1.2 2011/05/02 23:12:08 misho Exp $ +* $Id: defs.h,v 1.3 2011/08/29 22:37:06 misho Exp $ * ************************************************************************** The ELWIX and AITNET software is distributed under the following @@ -49,21 +49,17 @@ 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_Kill, blob_Kill; extern int rpc_Errno; extern char rpc_Error[];