land: init: Use c++ strings
This commit is contained in:
parent
1daa81e0af
commit
24b6e57205
1 changed files with 3 additions and 4 deletions
|
@ -109,11 +109,10 @@ static void init_alarm_boot_properties()
|
||||||
|
|
||||||
void vendor_load_properties()
|
void vendor_load_properties()
|
||||||
{
|
{
|
||||||
char device[PROP_VALUE_MAX];
|
std::string device;
|
||||||
int rc;
|
|
||||||
|
|
||||||
rc = property_get("ro.cm.device", device);
|
device = property_get("ro.cm.device");
|
||||||
if (!rc || strncmp(device, "land", PROP_VALUE_MAX))
|
if (device != "land")
|
||||||
return;
|
return;
|
||||||
|
|
||||||
import_kernel_cmdline(0, import_cmdline);
|
import_kernel_cmdline(0, import_cmdline);
|
||||||
|
|
Loading…
Reference in a new issue