From a23c37851387c2a9d45025a0987da44ee1bc3306 Mon Sep 17 00:00:00 2001 From: Andreas T Jonsson Date: Fri, 19 Apr 2024 12:32:09 +0200 Subject: [PATCH] Make the linter happy --- core/sync/futex_netbsd.odin | 1 - core/sync/primitives_netbsd.odin | 1 - core/sys/unix/pthread_netbsd.odin | 21 ++++++++++----------- 3 files changed, 10 insertions(+), 13 deletions(-) diff --git a/core/sync/futex_netbsd.odin b/core/sync/futex_netbsd.odin index f82af77d6..4f52e952f 100644 --- a/core/sync/futex_netbsd.odin +++ b/core/sync/futex_netbsd.odin @@ -4,7 +4,6 @@ package sync import "core:c" import "core:time" import "core:sys/unix" -import "base:runtime" @(private="file") Wait_Node :: struct { diff --git a/core/sync/primitives_netbsd.odin b/core/sync/primitives_netbsd.odin index 2d5b6b7fe..042e744e8 100644 --- a/core/sync/primitives_netbsd.odin +++ b/core/sync/primitives_netbsd.odin @@ -1,4 +1,3 @@ -//+build netbsd //+private package sync diff --git a/core/sys/unix/pthread_netbsd.odin b/core/sys/unix/pthread_netbsd.odin index c334fa56c..4cfe3c85c 100644 --- a/core/sys/unix/pthread_netbsd.odin +++ b/core/sys/unix/pthread_netbsd.odin @@ -1,4 +1,3 @@ -//+build netbsd package unix import "core:c" @@ -19,39 +18,39 @@ PTHREAD_BARRIER_T_SIZE :: 48 PTHREAD_ATTR_T_SIZE :: 16 pthread_cond_t :: struct #align(16) { - _: [PTHREAD_COND_T_SIZE] c.char + _: [PTHREAD_COND_T_SIZE] c.char, } pthread_mutex_t :: struct #align(16) { - _: [PTHREAD_MUTEX_T_SIZE] c.char + _: [PTHREAD_MUTEX_T_SIZE] c.char, } pthread_rwlock_t :: struct #align(16) { - _: [PTHREAD_RWLOCK_T_SIZE] c.char + _: [PTHREAD_RWLOCK_T_SIZE] c.char, } pthread_barrier_t :: struct #align(16) { - _: [PTHREAD_BARRIER_T_SIZE] c.char + _: [PTHREAD_BARRIER_T_SIZE] c.char, } pthread_attr_t :: struct #align(16) { - _: [PTHREAD_ATTR_T_SIZE] c.char + _: [PTHREAD_ATTR_T_SIZE] c.char, } pthread_condattr_t :: struct #align(16) { - _: [PTHREAD_CONDATTR_T_SIZE] c.char + _: [PTHREAD_CONDATTR_T_SIZE] c.char, } pthread_mutexattr_t :: struct #align(16) { - _: [PTHREAD_MUTEXATTR_T_SIZE] c.char + _: [PTHREAD_MUTEXATTR_T_SIZE] c.char, } pthread_rwlockattr_t :: struct #align(16) { - _: [PTHREAD_RWLOCKATTR_T_SIZE] c.char + _: [PTHREAD_RWLOCKATTR_T_SIZE] c.char, } pthread_barrierattr_t :: struct #align(16) { - _: [PTHREAD_BARRIERATTR_T_SIZE] c.char + _: [PTHREAD_BARRIERATTR_T_SIZE] c.char, } PTHREAD_MUTEX_NORMAL :: 0 @@ -75,7 +74,7 @@ sched_param :: struct { } sem_t :: struct #align(16) { - _: [SEM_T_SIZE] c.char + _: [SEM_T_SIZE] c.char, } PTHREAD_CANCEL_ENABLE :: 0