From d9bbd3e72b65b85b237709e68124f65d7ed8868c Mon Sep 17 00:00:00 2001 From: Ash Logan Date: Fri, 26 Aug 2022 21:40:37 +1000 Subject: [PATCH] Use wut headers for everything --- source/iosuhax.c | 2 +- source/iosuhax_devoptab.c | 4 ++-- source/os_functions.h | 32 -------------------------------- 3 files changed, 3 insertions(+), 35 deletions(-) delete mode 100644 source/os_functions.h diff --git a/source/iosuhax.c b/source/iosuhax.c index 725e807..f7bac19 100644 --- a/source/iosuhax.c +++ b/source/iosuhax.c @@ -22,7 +22,7 @@ * distribution. ***************************************************************************/ #include "iosuhax.h" -#include "os_functions.h" +#include #include #include diff --git a/source/iosuhax_devoptab.c b/source/iosuhax_devoptab.c index aed1280..870451b 100644 --- a/source/iosuhax_devoptab.c +++ b/source/iosuhax_devoptab.c @@ -22,7 +22,7 @@ * distribution. ***************************************************************************/ #include "iosuhax.h" -#include "os_functions.h" +#include #include #include #include @@ -957,7 +957,7 @@ static int fs_dev_add_device(const char *name, const char *mount_path, int fsaFd priv->mount_path = devpath; priv->fsaFd = fsaFd; priv->mounted = isMounted; - priv->pMutex = malloc(OS_MUTEX_SIZE); + priv->pMutex = malloc(sizeof(OSMutex)); if (!priv->pMutex) { free(dev); diff --git a/source/os_functions.h b/source/os_functions.h deleted file mode 100644 index 49d4813..0000000 --- a/source/os_functions.h +++ /dev/null @@ -1,32 +0,0 @@ -#ifndef __OS_FUNCTIONS_H_ -#define __OS_FUNCTIONS_H_ - -#ifdef __cplusplus -extern "C" { -#endif - -#define OS_MUTEX_SIZE 44 - -//!---------------------------------------------------------------------------------------------------------------------------------------------------------------------------- -//! Mutex functions -//!---------------------------------------------------------------------------------------------------------------------------------------------------------------------------- -extern void OSInitMutex(void *mutex); - -extern void OSLockMutex(void *mutex); - -extern void OSUnlockMutex(void *mutex); - -//!---------------------------------------------------------------------------------------------------------------------------------------------------------------------------- -//! IOS function -//!---------------------------------------------------------------------------------------------------------------------------------------------------------------------------- -extern int IOS_Ioctl(int fd, unsigned int request, void *input_buffer, unsigned int input_buffer_len, void *output_buffer, unsigned int output_buffer_len); - -extern int IOS_Open(char *path, unsigned int mode); - -extern int IOS_Close(int fd); - -#ifdef __cplusplus -} -#endif - -#endif // __OS_FUNCTIONS_H_