Commit 14729dbe authored by Linus Torvalds's avatar Linus Torvalds

Make some single-bit bitfields unsigned.

Signed single-bit bitfields really are a pretty strange
thing to have. They work, but it wasn't really intentional.
parent 672a4830
...@@ -425,7 +425,7 @@ struct task_struct { ...@@ -425,7 +425,7 @@ struct task_struct {
int pdeath_signal; /* The signal sent when the parent dies */ int pdeath_signal; /* The signal sent when the parent dies */
/* ??? */ /* ??? */
unsigned long personality; unsigned long personality;
int did_exec:1; unsigned did_exec:1;
pid_t pid; pid_t pid;
pid_t tgid; pid_t tgid;
/* /*
...@@ -465,7 +465,7 @@ struct task_struct { ...@@ -465,7 +465,7 @@ struct task_struct {
gid_t gid,egid,sgid,fsgid; gid_t gid,egid,sgid,fsgid;
struct group_info *group_info; struct group_info *group_info;
kernel_cap_t cap_effective, cap_inheritable, cap_permitted; kernel_cap_t cap_effective, cap_inheritable, cap_permitted;
int keep_capabilities:1; unsigned keep_capabilities:1;
struct user_struct *user; struct user_struct *user;
/* limits */ /* limits */
struct rlimit rlim[RLIM_NLIMITS]; struct rlimit rlim[RLIM_NLIMITS];
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment