]> granicus.if.org Git - strace/commitdiff
Use natural-sized integer field for tcb::flags
authorDenys Vlasenko <dvlasenk@redhat.com>
Fri, 19 Aug 2011 23:39:05 +0000 (01:39 +0200)
committerDenys Vlasenko <dvlasenk@redhat.com>
Tue, 23 Aug 2011 10:53:01 +0000 (12:53 +0200)
* defs: Change struct tcb::flags type from short to int.
This results in smaller code at least on x86.

Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
defs.h

diff --git a/defs.h b/defs.h
index 80c8c830d2dc46dfe5a18f601894dde01096efdb..1542861d8b6f42b5ac60a0f0cdb99f5d95bb916e 100644 (file)
--- a/defs.h
+++ b/defs.h
@@ -387,7 +387,7 @@ extern int mp_ioctl(int f, int c, void *a, int s);
 
 /* Trace Control Block */
 struct tcb {
-       short flags;            /* See below for TCB_ values */
+       int flags;              /* See below for TCB_ values */
        int pid;                /* Process Id of this entry */
        long scno;              /* System call number */
        int u_nargs;            /* System call arguments */