commit:     948a4538cee831e7108539d4a427eeef255db3a1
Author:     Mike Frysinger <vapier <AT> gentoo <DOT> org>
AuthorDate: Sun Oct 17 03:15:49 2021 +0000
Commit:     Mike Frysinger <vapier <AT> gentoo <DOT> org>
CommitDate: Sun Oct 17 03:15:49 2021 +0000
URL:        https://gitweb.gentoo.org/proj/sandbox.git/commit/?id=948a4538

libsandbox: add array bounds to times related funcs

While we don't care about them, the compiler does and warns about
mismatches, so add explicit [2] to them.

Signed-off-by: Mike Frysinger <vapier <AT> gentoo.org>

 libsandbox/wrapper-funcs/futimesat.c | 2 +-
 libsandbox/wrapper-funcs/lutimes.c   | 2 +-
 libsandbox/wrapper-funcs/utimensat.c | 2 +-
 libsandbox/wrapper-funcs/utimes.c    | 2 +-
 4 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/libsandbox/wrapper-funcs/futimesat.c 
b/libsandbox/wrapper-funcs/futimesat.c
index d549e6a..6f6481b 100644
--- a/libsandbox/wrapper-funcs/futimesat.c
+++ b/libsandbox/wrapper-funcs/futimesat.c
@@ -5,7 +5,7 @@
  * Licensed under the GPL-2
  */
 
-#define WRAPPER_ARGS_PROTO int dirfd, const char *filename, const struct 
timeval times[]
+#define WRAPPER_ARGS_PROTO int dirfd, const char *filename, const struct 
timeval times[2]
 #define WRAPPER_ARGS dirfd, filename, times
 #define WRAPPER_SAFE() SB_SAFE_AT(dirfd, filename, 0)
 #include "__wrapper_simple.c"

diff --git a/libsandbox/wrapper-funcs/lutimes.c 
b/libsandbox/wrapper-funcs/lutimes.c
index c608231..3192a33 100644
--- a/libsandbox/wrapper-funcs/lutimes.c
+++ b/libsandbox/wrapper-funcs/lutimes.c
@@ -5,7 +5,7 @@
  * Licensed under the GPL-2
  */
 
-#define WRAPPER_ARGS_PROTO const char *filename, const struct timeval times[]
+#define WRAPPER_ARGS_PROTO const char *filename, const struct timeval times[2]
 #define WRAPPER_ARGS filename, times
 #define WRAPPER_SAFE() SB_SAFE(filename)
 #include "__wrapper_simple.c"

diff --git a/libsandbox/wrapper-funcs/utimensat.c 
b/libsandbox/wrapper-funcs/utimensat.c
index e0d8ee1..840ff18 100644
--- a/libsandbox/wrapper-funcs/utimensat.c
+++ b/libsandbox/wrapper-funcs/utimensat.c
@@ -5,7 +5,7 @@
  * Licensed under the GPL-2
  */
 
-#define WRAPPER_ARGS_PROTO int dirfd, const char *filename, const struct 
timespec times[], int flags
+#define WRAPPER_ARGS_PROTO int dirfd, const char *filename, const struct 
timespec times[2], int flags
 #define WRAPPER_ARGS dirfd, filename, times, flags
 #define WRAPPER_SAFE() SB_SAFE_AT(dirfd, filename, flags)
 #include "__wrapper_simple.c"

diff --git a/libsandbox/wrapper-funcs/utimes.c 
b/libsandbox/wrapper-funcs/utimes.c
index c361c36..b117895 100644
--- a/libsandbox/wrapper-funcs/utimes.c
+++ b/libsandbox/wrapper-funcs/utimes.c
@@ -5,7 +5,7 @@
  * Licensed under the GPL-2
  */
 
-#define WRAPPER_ARGS_PROTO const char *filename, const struct timeval times[]
+#define WRAPPER_ARGS_PROTO const char *filename, const struct timeval times[2]
 #define WRAPPER_ARGS filename, times
 #define WRAPPER_SAFE() SB_SAFE(filename)
 #include "__wrapper_simple.c"

Reply via email to