mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] selinux: Variable type completion
@ 2022-08-16 17:58 Xin Gao
  0 siblings, 0 replies; only message in thread
From: Xin Gao @ 2022-08-16 17:58 UTC (permalink / raw)
  To: paul, stephen.smalley.work, eparis; +Cc: selinux, linux-kernel, Xin Gao

'unsigned int' is better than 'unsigned'.

Signed-off-by: Xin Gao <gaoxin@cdjrlc.com>
---
 security/selinux/hooks.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/security/selinux/hooks.c b/security/selinux/hooks.c
index beceb89f68d9..13f3271d2c6a 100644
--- a/security/selinux/hooks.c
+++ b/security/selinux/hooks.c
@@ -2392,7 +2392,7 @@ static int selinux_bprm_creds_for_exec(struct linux_binprm *bprm)
 	return 0;
 }
 
-static int match_file(const void *p, struct file *file, unsigned fd)
+static int match_file(const void *p, struct file *file, unsigned int fd)
 {
 	return file_has_perm(p, file, file_to_av(file)) ? fd + 1 : 0;
 }
@@ -2404,7 +2404,7 @@ static inline void flush_unauthorized_files(const struct cred *cred,
 	struct file *file, *devnull = NULL;
 	struct tty_struct *tty;
 	int drop_tty = 0;
-	unsigned n;
+	unsigned int n;
 
 	tty = get_current_tty();
 	if (tty) {
-- 
2.30.2


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2022-08-16 17:58 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-08-16 17:58 [PATCH] selinux: Variable type completion Xin Gao

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®