aboutsummaryrefslogtreecommitdiffstats
path: root/security
diff options
context:
space:
mode:
authorMika Kukkonen <mika@osdl.org>2004-07-13 20:14:43 -0700
committerLinus Torvalds <torvalds@ppc970.osdl.org>2004-07-13 20:14:43 -0700
commit1ade820cf5dea55593200f611534027902ee65a2 (patch)
tree4864dd5b014e7fb962408da1aaf279c14d0dc7bc /security
parent7b1eb3e7cea007a1d61bc34c53e6d0adde3af3cc (diff)
downloadhistory-1ade820cf5dea55593200f611534027902ee65a2.tar.gz
[PATCH] Fix 'unsigned' < 0 checks
Using "-W" found a few places that should probably use signed variables since they can contain (and check for) negative error values.
Diffstat (limited to 'security')
-rw-r--r--security/selinux/hooks.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/security/selinux/hooks.c b/security/selinux/hooks.c
index 161da40417e665..72cd0e5d3c9ebf 100644
--- a/security/selinux/hooks.c
+++ b/security/selinux/hooks.c
@@ -1792,7 +1792,8 @@ static inline void flush_unauthorized_files(struct files_struct * files)
spin_lock(&files->file_lock);
for (;;) {
- unsigned long set, i, fd;
+ unsigned long set, i;
+ int fd;
j++;
i = j * __NFDBITS;