--- libaitrpc/src/cli.c 2013/08/23 13:53:15 1.18 +++ libaitrpc/src/cli.c 2013/09/05 00:43:05 1.19 @@ -3,7 +3,7 @@ * by Michael Pounov * * $Author: misho $ -* $Id: cli.c,v 1.18 2013/08/23 13:53:15 misho Exp $ +* $Id: cli.c,v 1.19 2013/09/05 00:43:05 misho Exp $ * ************************************************************************** The ELWIX and AITNET software is distributed under the following @@ -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 */