From 37441bd7306d8f7c5775ec84d0c8efb4d73a8fe4 Mon Sep 17 00:00:00 2001 From: A1029384756 Date: Wed, 13 Nov 2024 00:09:38 -0500 Subject: [PATCH] core:sys/linux - fixed vet errors --- core/sys/linux/sys.odin | 2 +- core/sys/linux/types.odin | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/core/sys/linux/sys.odin b/core/sys/linux/sys.odin index 819edc4a5..9adeda610 100644 --- a/core/sys/linux/sys.odin +++ b/core/sys/linux/sys.odin @@ -2559,7 +2559,7 @@ inotify_rm_watch :: proc "contextless" (fd: Fd, wd: Wd) -> (Errno) { // helper procedure to access the data within an `Inotify_Event` // since Odin doesn't have an alternative to `__flexarr` inotify_event_name :: proc "contextless" (event: ^Inotify_Event) -> cstring { - return transmute(cstring)&event.name + return transmute(cstring)uintptr(&event.name) } // TODO(flysand): migrate_pages diff --git a/core/sys/linux/types.odin b/core/sys/linux/types.odin index 88b8f3f3c..97e593935 100644 --- a/core/sys/linux/types.odin +++ b/core/sys/linux/types.odin @@ -348,7 +348,7 @@ Poll_Fd :: struct { revents: Fd_Poll_Events, } -Inotify_Init_Flags :: bit_set[Inotify_Init_Bits; i32]; +Inotify_Init_Flags :: bit_set[Inotify_Init_Bits; i32] Inotify_Event :: struct { wd: Wd,