X-Git-Url: https://git.ucc.asn.au/?a=blobdiff_plain;f=Kernel%2Fvfs%2Ffs%2Fdevfs.c;h=6ead47e5ab2dda2069b771e363b11ebc422b2f7b;hb=1ca0233bb1e142c536d09c35ce8dcdb209a2938b;hp=82b0387b407f8e7154f78d648fd0607819c10639;hpb=eee93d35af3d95f69c61ed05b1afa54f5acac9b9;p=tpg%2Facess2.git diff --git a/Kernel/vfs/fs/devfs.c b/Kernel/vfs/fs/devfs.c index 82b0387b..6ead47e5 100644 --- a/Kernel/vfs/fs/devfs.c +++ b/Kernel/vfs/fs/devfs.c @@ -9,7 +9,7 @@ // === PROTOTYPES === int DevFS_AddDevice(tDevFS_Driver *Dev); -tVFS_Node *DevFS_InitDevice(char *Device, char *Options); +tVFS_Node *DevFS_InitDevice(char *Device, char **Options); char *DevFS_ReadDir(tVFS_Node *Node, int Pos); tVFS_Node *DevFS_FindDir(tVFS_Node *Node, char *Name); @@ -41,11 +41,11 @@ int DevFS_AddDevice(tDevFS_Driver *Dev) } /** - * \fn tVFS_Node *DevFS_InitDevice(char *Device, char *Options) + * \fn tVFS_Node *DevFS_InitDevice(char *Device, char **Options) * \brief Initialise the DevFS and detect double-mounting, or just do nothing * \stub */ -tVFS_Node *DevFS_InitDevice(char *Device, char *Options) +tVFS_Node *DevFS_InitDevice(char *Device, char **Options) { return &gDevFS_RootNode; } @@ -64,7 +64,7 @@ char *DevFS_ReadDir(tVFS_Node *Node, int Pos) dev = dev->Next ); - return dev->Name; + return strdup(dev->Name); } /**