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:
parent
d7037cbd2c
commit
8e6163ac4d
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user