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()
|
||||
{
|
||||
char device[PROP_VALUE_MAX];
|
||||
int rc;
|
||||
std::string device;
|
||||
|
||||
rc = property_get("ro.cm.device", device);
|
||||
if (!rc || strncmp(device, "land", PROP_VALUE_MAX))
|
||||
device = property_get("ro.cm.device");
|
||||
if (device != "land")
|
||||
return;
|
||||
|
||||
import_kernel_cmdline(0, import_cmdline);
|
||||
|
|
Loading…
Reference in a new issue