--- libaitrpc/inc/aitrpc.h 2013/08/23 13:53:15 1.19 +++ libaitrpc/inc/aitrpc.h 2013/09/05 00:43:04 1.20 @@ -3,7 +3,7 @@ * by Michael Pounov * * $Author: misho $ -* $Id: aitrpc.h,v 1.19 2013/08/23 13:53:15 misho Exp $ +* $Id: aitrpc.h,v 1.20 2013/09/05 00:43:04 misho Exp $ * ************************************************************************** The ELWIX and AITNET software is distributed under the following @@ -144,7 +144,8 @@ struct tagRPCCall { uint16_t call_argc; ait_val_t call_argv[0]; } __packed; /* size == 20 bytes */ -#define RPC_CHK_NOREPLY(x) ((x)->call_req.flags & RPC_NOREPLY) +#define RPC_CHK_NOREPLY(x) (ntohl((u_long) (x)->call_req.flags) & RPC_NOREPLY) +#define RPC_SET_ERRNO(x, _v) ((x)->call_rep.eno = htonl((_v))) /* Network BLOB packet - Header */