--- libaitsync/inc/defs.h 2012/11/13 10:00:30 1.3.2.1 +++ libaitsync/inc/defs.h 2012/11/13 10:30:43 1.3.2.2 @@ -3,7 +3,7 @@ * by Michael Pounov * * $Author: misho $ -* $Id: defs.h,v 1.3.2.1 2012/11/13 10:00:30 misho Exp $ +* $Id: defs.h,v 1.3.2.2 2012/11/13 10:30:43 misho Exp $ * ************************************************************************** The ELWIX and AITNET software is distributed under the following @@ -51,8 +51,8 @@ SUCH DAMAGE. #define STRSIZ 256 #endif -#define CHUNK_MAX 2048 -#define DLTSYNC_MAGIC 0xD34DC0D3 +#define CHUNK_MAX 4096 +#define DLTSYNC_MAGIC 0xDEBAC0DA #define SIGSYNC_MAGIC 0xDEADBEEF #define TABLESIZ (1 << 16) @@ -61,7 +61,7 @@ SUCH DAMAGE. #define GETTAG2(s1, s2) (((s1) + (s2)) & 0xFFFF) #define GETTAG(sum) GETTAG2((sum) & 0xFFFF, (sum) >> 16) -#define SETERR syncSetErr(errno, strerror(errno)); +#define LOGERR sync_SetErr(errno, strerror(errno)) typedef struct tagSyncChunk { @@ -95,7 +95,7 @@ struct tagPiece { }; -inline void syncSetErr(int eno, char *estr, ...); +inline void sync_SetErr(int eno, char *estr, ...);