]> granicus.if.org Git - strace/commitdiff
2005-01-22 Andreas Schwab <schwab@suse.de>
authorRoland McGrath <roland@redhat.com>
Wed, 2 Feb 2005 02:48:57 +0000 (02:48 +0000)
committerRoland McGrath <roland@redhat.com>
Wed, 2 Feb 2005 02:48:57 +0000 (02:48 +0000)
* net.c (sys_getsockopt): Change type of len to int.

net.c

diff --git a/net.c b/net.c
index d95ad53c2baa7c6c9fe2e6f4776d65d895640fb0..3d0d8615944513a3dc4958987edaf63bc804e938 100644 (file)
--- a/net.c
+++ b/net.c
@@ -1559,7 +1559,7 @@ struct tcb *tcp;
                        break;
                }
        } else {
-               long len;
+               int len;
                if (syserror(tcp) || umove (tcp, tcp->u_arg[4], &len) < 0) {
                        tprintf(", %#lx, %#lx",
                                tcp->u_arg[3], tcp->u_arg[4]);
@@ -1597,7 +1597,7 @@ struct tcb *tcp;
                else {
                        printstr (tcp, tcp->u_arg[3], len);
                }
-               tprintf(", [%ld]", len);
+               tprintf(", [%d]", len);
        }
        return 0;
 }