From 5da7839924f711f071c67ce4ce3808a966f521a4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Axel=20D=C3=B6rfler?= Date: Thu, 26 Jan 2006 00:04:44 +0000 Subject: [PATCH] * _kern_remove_dir() didn't even compile... (test environment (of which LibBeAdapter is a part of) isn't part of the build. * Added _kern_shutdown() function, so that the registrar still compiles even though __HAIKU__ is now defined for the target libbe_test. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@16095 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/kits/storage/LibBeAdapter.cpp | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/src/kits/storage/LibBeAdapter.cpp b/src/kits/storage/LibBeAdapter.cpp index caf38c9f0f..d3936d547f 100644 --- a/src/kits/storage/LibBeAdapter.cpp +++ b/src/kits/storage/LibBeAdapter.cpp @@ -552,7 +552,7 @@ _kern_remove_dir(int fd, const char *relPath) if (error != B_OK) return error; - if (rmdir(path.Path()) < 0) { + if (rmdir(path.Path()) < 0) return errno; return B_OK; @@ -735,3 +735,11 @@ _kern_get_safemode_option(const char *parameter, char *buffer, size_t *_bufferSi return _kget_safemode_option_(parameter, buffer, _bufferSize); } + +extern "C" status_t +_kern_shutdown(bool reboot) +{ + puts(reboot ? "reboot" : "shutdown"); + return B_ERROR; +} +