mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 02:32:09 -04:00
[AUDIT] Fix signedness of 'serial' in various routines.
Attached is a patch that corrects a signed/unsigned warning. I also noticed that we needlessly init serial to 0. That only needs to occur if the kernel was compiled without the audit system. -Steve Grubb Signed-off-by: David Woodhouse <[email protected]>
This commit is contained in:
parent
2fd6f58ba6
commit
d812ddbb89
3 changed files with 6 additions and 4 deletions
|
|
@ -992,7 +992,7 @@ void audit_inode(const char *name, const struct inode *inode)
|
|||
}
|
||||
|
||||
void audit_get_stamp(struct audit_context *ctx,
|
||||
struct timespec *t, int *serial)
|
||||
struct timespec *t, unsigned int *serial)
|
||||
{
|
||||
if (ctx) {
|
||||
t->tv_sec = ctx->ctime.tv_sec;
|
||||
|
|
|
|||
Loading…
Reference in a new issue