--- libaitrpc/src/cli.c 2013/08/23 13:38:05 1.17.2.3 +++ libaitrpc/src/cli.c 2013/09/05 00:27:10 1.18.2.1 @@ -3,7 +3,7 @@ * by Michael Pounov * * $Author: misho $ -* $Id: cli.c,v 1.17.2.3 2013/08/23 13:38:05 misho Exp $ +* $Id: cli.c,v 1.18.2.1 2013/09/05 00:27:10 misho Exp $ * ************************************************************************** The ELWIX and AITNET software is distributed under the following @@ -328,7 +328,7 @@ rpc_pkt_Receive(int sock, int type, sockaddr_t * __res continue; } - /* compiler optimize loop if while(0) and stop working 'continue' */ + /* compiler optimize loop if while(0) and stop working 'continue' on some platforms */ break; } while (42); @@ -380,7 +380,7 @@ rpc_pkt_Request(ait_val_t * __restrict pkt, rpc_sess_t rpc->call_argc = htons(array_Size(vars)); /* set reply */ - rpc->call_req.flags = noreply ? RPC_NOREPLY : RPC_REPLY; + rpc->call_req.flags = (uint64_t) htonl(noreply ? RPC_NOREPLY : RPC_REPLY); if (array_Size(vars)) { /* marshaling variables */