* defs.h (dumpiov): Replace "(unsigned long) -1L" with -1UL.
* io.c (print_iovec, tprint_iov): Likewise.
* msghdr.c (SYS_FUNC(sendmsg)): Likewise.
* syscall.c (dumpio): Likewise.
* poll.c (decode_poll_exiting): Replace "(unsigned int) -1" with -1U.
extern void dumpiov_in_mmsghdr(struct tcb *, long);
extern void dumpiov_upto(struct tcb *, int, long, unsigned long);
#define dumpiov(tcp, len, addr) \
- dumpiov_upto((tcp), (len), (addr), (unsigned long) -1L)
+ dumpiov_upto((tcp), (len), (addr), -1UL)
extern void dumpstr(struct tcb *, long, int);
extern void printstr_ex(struct tcb *, long addr, long len,
unsigned int user_style);
case IOV_DECODE_STR:
if (len > c->data_size)
len = c->data_size;
- if (c->data_size != (unsigned long) -1L)
+ if (c->data_size != -1UL)
c->data_size -= len;
printstr(tcp, iov[0], len);
break;
case IOV_DECODE_NETLINK:
if (len > c->data_size)
len = c->data_size;
- if (c->data_size != (unsigned long) -1L)
+ if (c->data_size != -1UL)
c->data_size -= len;
decode_netlink(tcp, iov[0], iov[1]);
break;
tprint_iov(struct tcb *tcp, unsigned long len, unsigned long addr,
enum iov_decode decode_iov)
{
- tprint_iov_upto(tcp, len, addr, decode_iov, (unsigned long) -1L);
+ tprint_iov_upto(tcp, len, addr, decode_iov, -1UL);
}
SYS_FUNC(readv)
{
printfd(tcp, tcp->u_arg[0]);
tprints(", ");
- decode_msghdr(tcp, 0, tcp->u_arg[1], (unsigned long) -1L);
+ decode_msghdr(tcp, 0, tcp->u_arg[1], -1UL);
/* flags */
tprints(", ");
printflags(msg_flags, tcp->u_arg[2], "MSG_???");
const unsigned long start = tcp->u_arg[0];
const unsigned long end = start + size;
const unsigned long max_printed =
- abbrev(tcp) ? max_strlen : (unsigned int) -1;
+ abbrev(tcp) ? max_strlen : -1U;
unsigned long printed, cur;
static char outstr[1024];
dumpiov(tcp, tcp->u_arg[2], tcp->u_arg[1]);
break;
case SEN_sendmsg:
- dumpiov_in_msghdr(tcp, tcp->u_arg[1],
- (unsigned long) -1L);
+ dumpiov_in_msghdr(tcp, tcp->u_arg[1], -1UL);
break;
case SEN_sendmmsg:
dumpiov_in_mmsghdr(tcp, tcp->u_arg[1]);