diff options
author | Andrew Morton <akpm@osdl.org> | 2005-04-29 10:59:11 -0400 |
---|---|---|
committer | <dwmw2@shinybook.infradead.org> | 2005-04-29 10:59:11 -0400 |
commit | 81b7854d52d35ed2353dd47033ae630d18322a2d (patch) | |
tree | 9df2b6f7accc3a7f3bcee9af5493c0cdf6b1f140 /kernel | |
parent | 83c7d09173fdb6b06b109e65895392db3e49ac9c (diff) |
audit_log_untrustedstring() warning fix
kernel/audit.c: In function `audit_log_untrustedstring':
kernel/audit.c:736: warning: comparison is always false due to limited range of data type
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: David Woodhouse <dwmw2@infradead.org>
Diffstat (limited to 'kernel')
-rw-r--r-- | kernel/audit.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/audit.c b/kernel/audit.c index dca7b99615d2..e7bff8000d23 100644 --- a/kernel/audit.c +++ b/kernel/audit.c | |||
@@ -730,7 +730,7 @@ void audit_log_hex(struct audit_buffer *ab, const unsigned char *buf, size_t len | |||
730 | 730 | ||
731 | void audit_log_untrustedstring(struct audit_buffer *ab, const char *string) | 731 | void audit_log_untrustedstring(struct audit_buffer *ab, const char *string) |
732 | { | 732 | { |
733 | const char *p = string; | 733 | const unsigned char *p = string; |
734 | 734 | ||
735 | while (*p) { | 735 | while (*p) { |
736 | if (*p == '"' || *p == ' ' || *p < 0x20 || *p > 0x7f) { | 736 | if (*p == '"' || *p == ' ' || *p < 0x20 || *p > 0x7f) { |