diff options
author | Tavian Barnes <tavianator@tavianator.com> | 2024-05-07 14:51:41 -0400 |
---|---|---|
committer | Tavian Barnes <tavianator@tavianator.com> | 2024-05-07 15:13:28 -0400 |
commit | c5cf2cf90834f2f56b2940d2a499a1a614ebfd21 (patch) | |
tree | 567be8c7554726ffe0ff5ad467ea6ad07fa8094f /build/has/getdents64-syscall.c | |
parent | 83a8e57e24c403eb1110bddd59e9f80d57fe04ab (diff) | |
download | bfs-c5cf2cf90834f2f56b2940d2a499a1a614ebfd21.tar.xz |
build/has/getdents: Squelch warnings
Diffstat (limited to 'build/has/getdents64-syscall.c')
-rw-r--r-- | build/has/getdents64-syscall.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/build/has/getdents64-syscall.c b/build/has/getdents64-syscall.c index 4838c14..7642d93 100644 --- a/build/has/getdents64-syscall.c +++ b/build/has/getdents64-syscall.c @@ -6,7 +6,6 @@ #include <unistd.h> int main(void) { - struct dirent64 de; - syscall(SYS_getdents64, 3, &de, 1024); - return 0; + char buf[1024]; + return syscall(SYS_getdents64, 3, (void *)buf, sizeof(buf)); } |