]> granicus.if.org Git - strace/commitdiff
2004-03-18 Dmitry V. Levin <ldv@altlinux.org>
authorRoland McGrath <roland@redhat.com>
Fri, 16 Apr 2004 21:58:55 +0000 (21:58 +0000)
committerRoland McGrath <roland@redhat.com>
Fri, 16 Apr 2004 21:58:55 +0000 (21:58 +0000)
* resource.c (sys_quotactl) [LINUX]: Cast arithmetic shift operand
from long to unsigned long, to fix output of the quotactl command
parser.

resource.c

index 8e64660602b971c1201c64aa6e5f33b37ce4c98b..4692a37b76aff102371caad2d03f601104155f55 100644 (file)
@@ -499,7 +499,7 @@ sys_quotactl(tcp)
 struct tcb *tcp;
 {
        if (entering(tcp)) {
-               printxval(quotacmds, tcp->u_arg[0] >> SUBCMDSHIFT, "Q_???");
+               printxval(quotacmds, (unsigned long) tcp->u_arg[0] >> SUBCMDSHIFT, "Q_???");
                tprintf("|");
                printxval(quotatypes, tcp->u_arg[0] & SUBCMDMASK, "???QUOTA");
                tprintf(", ");