]> xenbits.xensource.com Git - unikraft/unikraft.git/commitdiff
lib/nolibc: Remove warnings of timespec
authorTakeru Wada <takew@asg.cs.tuat.ac.jp>
Mon, 13 Mar 2023 14:37:51 +0000 (14:37 +0000)
committerUnikraft <monkey@unikraft.io>
Sun, 7 May 2023 17:04:15 +0000 (17:04 +0000)
This commit fixes the definition of pointer arguments in GCC >= 11.

Signed-off-by: Takeru Wada <takew@asg.cs.tuat.ac.jp>
Reviewed-by: Maria Sfiraiala <maria.sfiraiala@gmail.com>
Approved-by: Razvan Deaconescu <razvand@unikraft.io>
Tested-by: Unikraft CI <monkey@unikraft.io>
GitHub-Closes: #800

lib/nolibc/include/sys/stat.h

index eb78717037ef40d13a49e4dd210582821bd79700..10bf10599ed1807daf52f77599d6ce2566d5ad66 100644 (file)
@@ -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);