LibC: Remove TODO() macros to not break mc port

The TODO() macro crashes the port Midnight Commander on start-up.
This commit is contained in:
Kenneth Myhra 2022-01-12 22:11:21 +01:00 committed by Linus Groh
parent 99f315bda1
commit 965b772f70
Notes: sideshowbarker 2024-07-17 20:56:35 +09:00
2 changed files with 1 additions and 5 deletions
Userland/Libraries/LibC

View file

@ -13,28 +13,24 @@ extern "C" {
struct mntent* getmntent(FILE*)
{
dbgln("FIXME: Implement getmntent()");
TODO();
return nullptr;
}
FILE* setmntent(char const*, char const*)
{
dbgln("FIXME: Implement setmntent()");
TODO();
return nullptr;
}
int endmntent(FILE*)
{
dbgln("FIXME: Implement endmntent()");
TODO();
return 0;
}
struct mntent* getmntent_r(FILE*, struct mntent*, char*, int)
{
dbgln("FIXME: Implement getmntent_r()");
TODO();
return 0;
}
}

View file

@ -96,7 +96,7 @@ void* tfind(const void* key, void* const* rootp, int (*comparator)(const void*,
void* tdelete(const void*, void**, int (*)(const void*, const void*))
{
dbgln("FIXME: Implement tdelete()");
TODO();
return nullptr;
}
static void twalk_internal(const struct search_tree_node* node, void (*action)(const void*, VISIT, int), int depth)