Now uses the B_SAFEMODE_SAFE_MODE definition instead of the string directly.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12184 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Axel Dörfler 2005-03-31 11:11:17 +00:00
parent d7037cbd2c
commit 8e6163ac4d

View File

@ -1,11 +1,10 @@
/*
* (c) 2004, Jérôme DUVAL for Haiku
* released under the MIT licence.
*
* safemode
*/
#include <drivers/driver_settings.h>
#include <syscalls.h>
#include <stdio.h>
@ -18,7 +17,7 @@ main(int argc, char **argv)
char buffer[B_FILE_NAME_LENGTH];
size_t size = sizeof(buffer);
status_t status = _kern_get_safemode_option("safemode", buffer, &size);
status_t status = _kern_get_safemode_option(B_SAFEMODE_SAFE_MODE, buffer, &size);
if (status == B_OK) {
if (!strncasecmp(buffer, "true", size)
|| !strncasecmp(buffer, "yes", size)