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.
This commit is contained in:
parent
909e664a2e
commit
dd9a511c17
4
defs.h
4
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;
|
||||
|
4
open.c
4
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"));
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user