From: Takeru Wada Date: Mon, 13 Mar 2023 14:37:51 +0000 (+0000) Subject: lib/nolibc: Remove warnings of timespec X-Git-Tag: RELEASE-0.13.0~50 X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=4792af49d89c1c0e141b40720d4ec1b89530411a;p=unikraft%2Funikraft.git lib/nolibc: Remove warnings of timespec This commit fixes the definition of pointer arguments in GCC >= 11. Signed-off-by: Takeru Wada Reviewed-by: Maria Sfiraiala Approved-by: Razvan Deaconescu Tested-by: Unikraft CI GitHub-Closes: #800 --- diff --git a/lib/nolibc/include/sys/stat.h b/lib/nolibc/include/sys/stat.h index eb7871703..10bf10599 100644 --- a/lib/nolibc/include/sys/stat.h +++ b/lib/nolibc/include/sys/stat.h @@ -116,8 +116,8 @@ int mknod(const char *, mode_t, dev_t); int mknodat(int, const char *, mode_t, dev_t); #endif -int futimens(int, const struct timespec [2]); -int utimensat(int, const char *, const struct timespec [2], int); +int futimens(int, const struct timespec *); +int utimensat(int, const char *, const struct timespec *, int); #if defined(_GNU_SOURCE) || defined(_BSD_SOURCE) int lchmod(const char *, mode_t);