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".
diff --git a/net.c b/net.c
index fba521b..050b746 100644
--- a/net.c
+++ b/net.c
@@ -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 @@
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 @@
{
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_???");