diff options
author | Dmitry V. Levin <ldv@altlinux.org> | 2012-05-01 20:30:02 +0000 |
---|---|---|
committer | Dmitry V. Levin <ldv@altlinux.org> | 2012-05-01 20:30:02 +0000 |
commit | 043b5f81429412cf23d578d1dc2b45107a8352e5 (patch) | |
tree | 220eb3c87aac86fc51df80052d4ae7acc4762387 /net.c | |
parent | 3efa7c7f1be0f54e0656de5cb4a5f4c39db10150 (diff) | |
download | strace-043b5f81429412cf23d578d1dc2b45107a8352e5.tar.gz strace-043b5f81429412cf23d578d1dc2b45107a8352e5.tar.bz2 strace-043b5f81429412cf23d578d1dc2b45107a8352e5.tar.xz |
Remove recently introduced use of ULONG_MAX
* io.c: Remove limits.h inclusion.
(tprint_iov): Use "(unsigned long) -1L" instead of "ULONG_MAX".
* net.c: Remove limits.h inclusion.
(printmmsghdr, sys_sendmsg): Use "(unsigned long) -1L" instead of
"ULONG_MAX".
Diffstat (limited to 'net.c')
-rw-r--r-- | net.c | 5 |
1 files changed, 2 insertions, 3 deletions
@@ -29,7 +29,6 @@ */ #include "defs.h" -#include <limits.h> #include <sys/stat.h> #include <sys/socket.h> #include <sys/un.h> @@ -1455,7 +1454,7 @@ printmmsghdr(struct tcb *tcp, long addr, unsigned int idx) return; } tprints("{"); - do_msghdr(tcp, &mmsg.msg_hdr, ULONG_MAX); + do_msghdr(tcp, &mmsg.msg_hdr, (unsigned long) -1L); tprintf(", %u}", mmsg.msg_len); } @@ -1639,7 +1638,7 @@ sys_sendmsg(struct tcb *tcp) { if (entering(tcp)) { tprintf("%ld, ", tcp->u_arg[0]); - printmsghdr(tcp, tcp->u_arg[1], ULONG_MAX); + printmsghdr(tcp, tcp->u_arg[1], (unsigned long) -1L); /* flags */ tprints(", "); printflags(msg_flags, tcp->u_arg[2], "MSG_???"); |