Remove conversions between VfsStat struct and IoctlStat struct
This commit is contained in:
@ -14,6 +14,7 @@
|
||||
#include "bootinfo/bootinfo.h"
|
||||
#include "ipc/pipe/pipe.h"
|
||||
#include "sysdefs/processctl.h"
|
||||
#include "sysdefs/ioctl.h"
|
||||
|
||||
#define PROC_REAPER_FREQ 30
|
||||
|
||||
@ -74,12 +75,12 @@ ElfAuxval proc_load_elf_segs(Proc *proc, uint8_t *data) {
|
||||
}
|
||||
|
||||
Proc *proc_spawnuser(char *mountpoint, char *path) {
|
||||
VfsStat stat;
|
||||
IoctlStat stat;
|
||||
if (vfs_stat(mountpoint, path, &stat) != E_OK) {
|
||||
return NULL;
|
||||
}
|
||||
|
||||
if (stat.type != VFS_TYPE_FILE) {
|
||||
if (stat.type != IOCTLSTAT_FILE) {
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user