summaryrefslogtreecommitdiff
path: root/LibC/unistd.cpp
diff options
context:
space:
mode:
authorAndreas Kling <awesomekling@gmail.com>2019-04-23 21:52:02 +0200
committerAndreas Kling <awesomekling@gmail.com>2019-04-23 21:52:02 +0200
commit0c898e3c2cad9a5b2c7a4caf41bd9b544d31ba19 (patch)
tree3fdc8c4350987276de15080d047dc02397359c31 /LibC/unistd.cpp
parentf3754b842937f222a58472ea7010eb4246ef1157 (diff)
downloadserenity-0c898e3c2cad9a5b2c7a4caf41bd9b544d31ba19.zip
Put assertions behind a DEBUG flag to make it easy to build without them.
Diffstat (limited to 'LibC/unistd.cpp')
-rw-r--r--LibC/unistd.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/LibC/unistd.cpp b/LibC/unistd.cpp
index 28190bdbfd..ab691151e5 100644
--- a/LibC/unistd.cpp
+++ b/LibC/unistd.cpp
@@ -362,27 +362,27 @@ int access(const char* pathname, int mode)
int mknod(const char* pathname, mode_t, dev_t)
{
(void) pathname;
- assert(false);
+ ASSERT_NOT_REACHED();
}
long fpathconf(int fd, int name)
{
(void) fd;
(void) name;
- assert(false);
+ ASSERT_NOT_REACHED();
}
long pathconf(const char* path, int name)
{
(void) path;
(void) name;
- assert(false);
+ ASSERT_NOT_REACHED();
}
void _exit(int status)
{
syscall(SC_exit, status);
- assert(false);
+ ASSERT_NOT_REACHED();
}
void sync()