summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibC/wchar.cpp
diff options
context:
space:
mode:
authorDaniel Bertalan <dani@danielbertalan.dev>2021-10-16 10:00:05 +0200
committerLinus Groh <mail@linusgroh.de>2021-10-17 17:09:58 +0100
commite6164d35fade3bd5e74ff2a06251e9e1eb1e3118 (patch)
tree88a9c753b6a29e9aff113e476b5c8602b75c1f13 /Userland/Libraries/LibC/wchar.cpp
parent763a69d46d16cdd78e57f4709847250607a96df7 (diff)
downloadserenity-e6164d35fade3bd5e74ff2a06251e9e1eb1e3118.zip
LibC: Fix wcsrchr declaration to return a non-const wchar*
This is how the standard specifies it; similarly to the already correctly declared wcschr function.
Diffstat (limited to 'Userland/Libraries/LibC/wchar.cpp')
-rw-r--r--Userland/Libraries/LibC/wchar.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Userland/Libraries/LibC/wchar.cpp b/Userland/Libraries/LibC/wchar.cpp
index 33813a6209..794fef19fe 100644
--- a/Userland/Libraries/LibC/wchar.cpp
+++ b/Userland/Libraries/LibC/wchar.cpp
@@ -101,7 +101,7 @@ wchar_t* wcschr(const wchar_t* str, int c)
}
}
-const wchar_t* wcsrchr(const wchar_t* str, wchar_t wc)
+wchar_t* wcsrchr(const wchar_t* str, wchar_t wc)
{
wchar_t* last = nullptr;
wchar_t c;