audit: fix incorrect type of sessionid
authorRichard Guy Briggs <rgb@redhat.com>
Tue, 26 Nov 2013 23:01:36 +0000 (18:01 -0500)
committerEric Paris <eparis@redhat.com>
Tue, 14 Jan 2014 03:30:32 +0000 (22:30 -0500)
The type of task->sessionid is unsigned int, the return
type of audit_get_sessionid should be consistent with it.

Signed-off-by: Gao feng <gaofeng@cn.fujitsu.com>
Signed-off-by: Richard Guy Briggs <rgb@redhat.com>
Signed-off-by: Eric Paris <eparis@redhat.com>
include/linux/audit.h

index 9185bfa1c78b1ceaf5e6bdcb7a6af129dcd5a3a3..1690f956bff58416984cd423dfcfec2c2f209a42 100644 (file)
@@ -202,7 +202,7 @@ static inline kuid_t audit_get_loginuid(struct task_struct *tsk)
        return tsk->loginuid;
 }
 
-static inline int audit_get_sessionid(struct task_struct *tsk)
+static inline unsigned int audit_get_sessionid(struct task_struct *tsk)
 {
        return tsk->sessionid;
 }
@@ -359,7 +359,7 @@ static inline kuid_t audit_get_loginuid(struct task_struct *tsk)
 {
        return INVALID_UID;
 }
-static inline int audit_get_sessionid(struct task_struct *tsk)
+static inline unsigned int audit_get_sessionid(struct task_struct *tsk)
 {
        return -1;
 }