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.
diff --git a/defs.h b/defs.h
index eec0228..d1e8e1b 100644
--- a/defs.h
+++ b/defs.h
@@ -629,8 +629,8 @@
 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 9bd1b95..90dd10f 100644
--- a/open.c
+++ b/open.c
@@ -73,7 +73,7 @@
  * 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 @@
 }
 
 void
-tprint_open_modes(int flags)
+tprint_open_modes(unsigned int flags)
 {
 	tprints(sprint_open_modes(flags) + sizeof("flags"));
 }