summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKenneth Myhra <kennethmyhra@gmail.com>2022-01-12 22:11:21 +0100
committerLinus Groh <mail@linusgroh.de>2022-01-13 18:46:22 +0100
commit965b772f7061296d0ad45a9399cab4210fb3e5a3 (patch)
treee194c63bab55640aab319952b22b1e7d1212199a
parent99f315bda14fa5c914b67b637f679b8abc8752a5 (diff)
downloadserenity-965b772f7061296d0ad45a9399cab4210fb3e5a3.zip
LibC: Remove TODO() macros to not break mc port
The TODO() macro crashes the port Midnight Commander on start-up.
-rw-r--r--Userland/Libraries/LibC/mntent.cpp4
-rw-r--r--Userland/Libraries/LibC/search.cpp2
2 files changed, 1 insertions, 5 deletions
diff --git a/Userland/Libraries/LibC/mntent.cpp b/Userland/Libraries/LibC/mntent.cpp
index 5874e44bc6..d2746599ca 100644
--- a/Userland/Libraries/LibC/mntent.cpp
+++ b/Userland/Libraries/LibC/mntent.cpp
@@ -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;
}
}
diff --git a/Userland/Libraries/LibC/search.cpp b/Userland/Libraries/LibC/search.cpp
index 76c58cc8ca..7059297605 100644
--- a/Userland/Libraries/LibC/search.cpp
+++ b/Userland/Libraries/LibC/search.cpp
@@ -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)