From dd9a511c173a3656c6f5e61c2cd4bd6f1f27f388 Mon Sep 17 00:00:00 2001 From: "Dmitry V. Levin" Date: Thu, 28 Apr 2016 23:40:37 +0000 Subject: [PATCH] Change type of {s,t}print_open_modes's argument to unsigned As "flags" argument of sprint_open_modes and tprint_open_modes is involved only in bit operations, change its type to unsigned. * defs.h.c (sprint_open_modes, tprint_open_modes): Change type to unsigned int. * open.c (sprint_open_modes, tprint_open_modes): Likewise. --- defs.h | 4 ++-- open.c | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/defs.h b/defs.h index eec0228b..d1e8e1bf 100644 --- a/defs.h +++ b/defs.h @@ -629,8 +629,8 @@ extern const char *sprintsigmask_n(const char *, const void *, unsigned int); extern void printsignal(int); extern void tprint_iov(struct tcb *, unsigned long, unsigned long, int decode_iov); extern void tprint_iov_upto(struct tcb *, unsigned long, unsigned long, int decode_iov, unsigned long); -extern void tprint_open_modes(int); -extern const char *sprint_open_modes(int); +extern void tprint_open_modes(unsigned int); +extern const char *sprint_open_modes(unsigned int); extern void print_seccomp_filter(struct tcb *tcp, unsigned long); struct strace_statfs; diff --git a/open.c b/open.c index 9bd1b95a..90dd10fe 100644 --- a/open.c +++ b/open.c @@ -73,7 +73,7 @@ print_dirfd(struct tcb *tcp, int fd) * other bits are real flags. */ const char * -sprint_open_modes(int flags) +sprint_open_modes(unsigned int flags) { static char outstr[(1 + ARRAY_SIZE(open_mode_flags)) * sizeof("O_LARGEFILE")]; char *p; @@ -110,7 +110,7 @@ sprint_open_modes(int flags) } void -tprint_open_modes(int flags) +tprint_open_modes(unsigned int flags) { tprints(sprint_open_modes(flags) + sizeof("flags")); } -- 2.40.0