return;
}
- if (addrlen < 2 || addrlen > sizeof(addrbuf))
+ if (addrlen < 2 || addrlen > (int) sizeof(addrbuf))
addrlen = sizeof(addrbuf);
memset(&addrbuf, 0, sizeof(addrbuf));
* other bits are socket type flags.
*/
static void
-tprint_sock_type(struct tcb *tcp, int flags)
+tprint_sock_type(int flags)
{
const char *str = xlookup(socktypes, flags & SOCK_TYPE_MASK);
if (entering(tcp)) {
printxval(domains, tcp->u_arg[0], "PF_???");
tprints(", ");
- tprint_sock_type(tcp, tcp->u_arg[1]);
+ tprint_sock_type(tcp->u_arg[1]);
tprints(", ");
switch (tcp->u_arg[0]) {
case PF_INET:
if (entering(tcp)) {
printxval(domains, tcp->u_arg[0], "PF_???");
tprints(", ");
- tprint_sock_type(tcp, tcp->u_arg[1]);
+ tprint_sock_type(tcp->u_arg[1]);
tprintf(", %lu", tcp->u_arg[2]);
} else {
if (syserror(tcp)) {