diff options
author | David Woodhouse <dwmw2@shinybook.infradead.org> | 2005-05-13 13:50:33 -0400 |
---|---|---|
committer | David Woodhouse <dwmw2@shinybook.infradead.org> | 2005-05-13 13:50:33 -0400 |
commit | 5e014b10ef8477c32a939a48fa02aedcad35a226 (patch) | |
tree | 8c314b8485aff98506402976c3bca1011735a633 /kernel/audit.c | |
parent | 23f32d18aa589e228c5a9e12e0d0c67c9b5bcdce (diff) |
AUDIT: fix max_t thinko.
Der... if you use max_t it helps if you give it a type.
Note to self: Always just apply the tested patches, don't try to port
them by hand. You're not clever enough.
Signed-off-by: David Woodhouse <dwmw2@infradead.org>
Diffstat (limited to 'kernel/audit.c')
-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 74779d3769fa..a0e33b6897d7 100644 --- a/kernel/audit.c +++ b/kernel/audit.c | |||
@@ -703,7 +703,7 @@ static void audit_log_vformat(struct audit_buffer *ab, const char *fmt, | |||
703 | /* The printk buffer is 1024 bytes long, so if we get | 703 | /* The printk buffer is 1024 bytes long, so if we get |
704 | * here and AUDIT_BUFSIZ is at least 1024, then we can | 704 | * here and AUDIT_BUFSIZ is at least 1024, then we can |
705 | * log everything that printk could have logged. */ | 705 | * log everything that printk could have logged. */ |
706 | avail = audit_expand(ab, max_t(AUDIT_BUFSIZ, 1+len-avail)); | 706 | avail = audit_expand(ab, max_t(unsigned, AUDIT_BUFSIZ, 1+len-avail)); |
707 | if (!avail) | 707 | if (!avail) |
708 | goto out; | 708 | goto out; |
709 | len = vsnprintf(skb->tail, avail, fmt, args2); | 709 | len = vsnprintf(skb->tail, avail, fmt, args2); |