summaryrefslogtreecommitdiff
path: root/resource.c
diff options
context:
space:
mode:
authorRoland McGrath <roland@redhat.com>2004-04-16 21:58:55 +0000
committerRoland McGrath <roland@redhat.com>2004-04-16 21:58:55 +0000
commit1a3d60e1fc08d23194dd735c70c5984c69c4f948 (patch)
tree7784226e769e1de98e994d71601a356270def3d6 /resource.c
parent5a8458bb03c1b8a25e4beb2c69d2997600d43ae4 (diff)
downloadstrace-1a3d60e1fc08d23194dd735c70c5984c69c4f948.tar.gz
strace-1a3d60e1fc08d23194dd735c70c5984c69c4f948.tar.bz2
strace-1a3d60e1fc08d23194dd735c70c5984c69c4f948.tar.xz
2004-03-18 Dmitry V. Levin <ldv@altlinux.org>
* resource.c (sys_quotactl) [LINUX]: Cast arithmetic shift operand from long to unsigned long, to fix output of the quotactl command parser.
Diffstat (limited to 'resource.c')
-rw-r--r--resource.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/resource.c b/resource.c
index 8e64660..4692a37 100644
--- a/resource.c
+++ b/resource.c
@@ -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(", ");