From 9c06898303bd7625c8d450e0b5ddfdad49356ba4 Mon Sep 17 00:00:00 2001 From: Isaac Andrade Date: Fri, 23 Aug 2024 20:01:15 -0600 Subject: [PATCH] Add comma to last dirent struct member. --- core/sys/posix/dirent.odin | 30 +++++++++++++++--------------- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/core/sys/posix/dirent.odin b/core/sys/posix/dirent.odin index 127f7bc48..79b4f87c0 100644 --- a/core/sys/posix/dirent.odin +++ b/core/sys/posix/dirent.odin @@ -205,29 +205,29 @@ when ODIN_OS == .Darwin { when ODIN_ARCH == .i386 || ODIN_ARCH == .wasm32 || ODIN_ARCH == .arm32 { dirent :: struct { - d_ino: ino_t32, /* [PSX] file number of entry */ - d_off: off_t32, /* directory offset of the next entry */ - d_reclen: c.uint16_t, /* length of this record */ - d_type: D_Type, /* file type */ - d_name: [256]c.char `fmt:"s,0"` /* [PSX] entry name */ + d_ino: ino_t32, /* [PSX] file number of entry */ + d_off: off_t32, /* directory offset of the next entry */ + d_reclen: c.uint16_t, /* length of this record */ + d_type: D_Type, /* file type */ + d_name: [256]c.char `fmt:"s,0"`, /* [PSX] entry name */ } } else when ODIN_ARCH == .amd64 || ODIN_ARCH == .wasm64p32 || ODIN_ARCH == .arm64 { dirent :: struct { - d_ino: ino_t, /* [PSX] file number of entry */ - d_off: off_t, /* directory offset of the next entry */ - d_reclen: c.uint16_t, /* length of this record */ - d_type: D_Type, /* file type */ - d_name: [256]c.char `fmt:"s,0"` /* [PSX] entry name */ + d_ino: ino_t, /* [PSX] file number of entry */ + d_off: off_t, /* directory offset of the next entry */ + d_reclen: c.uint16_t, /* length of this record */ + d_type: D_Type, /* file type */ + d_name: [256]c.char `fmt:"s,0"`, /* [PSX] entry name */ } } dirent64 :: struct { - d_ino: ino_t, /* [PSX] file number of entry */ - d_off: off_t, /* directory offset of the next entry */ - d_reclen: c.uint16_t, /* length of this record */ - d_type: D_Type, /* file type */ - d_name: [256]c.char `fmt:"s,0"` /* [PSX] entry name */ + d_ino: ino_t, /* [PSX] file number of entry */ + d_off: off_t, /* directory offset of the next entry */ + d_reclen: c.uint16_t, /* length of this record */ + d_type: D_Type, /* file type */ + d_name: [256]c.char `fmt:"s,0"`, /* [PSX] entry name */ } } else {