]> git.neil.brown.name Git - history.git/commitdiff
Make some single-bit bitfields unsigned.
authorLinus Torvalds <torvalds@ppc970.osdl.org>
Sun, 22 Aug 2004 13:06:07 +0000 (06:06 -0700)
committerLinus Torvalds <torvalds@ppc970.osdl.org>
Sun, 22 Aug 2004 13:06:07 +0000 (06:06 -0700)
Signed single-bit bitfields really are a pretty strange
thing to have. They work, but it wasn't really intentional.

include/linux/sched.h

index e752fed52204a892885385ecb1f8dad92db21905..ed6acd78eb8b29e06f33c9904ce815615663366e 100644 (file)
@@ -425,7 +425,7 @@ struct task_struct {
        int pdeath_signal;  /*  The signal sent when the parent dies  */
        /* ??? */
        unsigned long personality;
-       int did_exec:1;
+       unsigned did_exec:1;
        pid_t pid;
        pid_t tgid;
        /* 
@@ -465,7 +465,7 @@ struct task_struct {
        gid_t gid,egid,sgid,fsgid;
        struct group_info *group_info;
        kernel_cap_t   cap_effective, cap_inheritable, cap_permitted;
-       int keep_capabilities:1;
+       unsigned keep_capabilities:1;
        struct user_struct *user;
 /* limits */
        struct rlimit rlim[RLIM_NLIMITS];