Skip to content

Commit

Permalink
LibC: Remove TODO() macros to not break mc port
Browse files Browse the repository at this point in the history
The TODO() macro crashes the port Midnight Commander on start-up.
  • Loading branch information
kennethmyhra authored and linusg committed Jan 13, 2022
1 parent 99f315b commit 965b772
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
4 changes: 0 additions & 4 deletions Userland/Libraries/LibC/mntent.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}
2 changes: 1 addition & 1 deletion Userland/Libraries/LibC/search.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 965b772

Please sign in to comment.