diff options
| author | Ethan Chen <intervigil@gmail.com> | 2015-12-22 10:38:34 -0800 |
|---|---|---|
| committer | Ethan Chen <intervigil@gmail.com> | 2015-12-22 12:13:50 -0800 |
| commit | 6fea656ed05e0227c1b8fe688baf7ba170a4a8bf (patch) | |
| tree | b9b77c5834bf54dba3d9fbfa93b845d2c1f4cb1b | |
| parent | 0871efd91d4509f4217a2bac4fd65b43a2385eff (diff) | |
ghost: Build init extension library as C++
Change-Id: I99ba2ec633a28ad54643dd80642a67c9af38bb6d
| -rw-r--r-- | BoardConfig.mk | 2 | ||||
| -rw-r--r-- | init/init_ghost.cpp (renamed from init/init_ghost.c) | 7 |
2 files changed, 5 insertions, 4 deletions
diff --git a/BoardConfig.mk b/BoardConfig.mk index b122b71..cfee189 100644 --- a/BoardConfig.mk +++ b/BoardConfig.mk @@ -29,7 +29,7 @@ BOARD_BLUETOOTH_BDROID_BUILDCFG_INCLUDE_DIR := $(LOCAL_PATH)/bluetooth # Init TARGET_INIT_VENDOR_LIB := libinit_msm -TARGET_LIBINIT_DEFINES_FILE := $(LOCAL_PATH)/init/init_ghost.c +TARGET_LIBINIT_DEFINES_FILE := $(LOCAL_PATH)/init/init_ghost.cpp TARGET_NR_SVC_SUPP_GIDS := 28 TARGET_UNIFIED_DEVICE := true diff --git a/init/init_ghost.c b/init/init_ghost.cpp index e744e47..003d23a 100644 --- a/init/init_ghost.c +++ b/init/init_ghost.cpp @@ -40,7 +40,8 @@ static void set_cmdline_properties() { - int i, rc; + size_t i; + int rc; char prop[PROP_VALUE_MAX]; struct { @@ -70,8 +71,8 @@ static void gsm_properties() property_set("telephony.lteOnGsmDevice", "1"); } -static void cdma_properties(char default_sub[], char op_numeric[], - char op_alpha[]) +static void cdma_properties(const char *default_sub, const char *op_numeric, + const char *op_alpha) { property_set("ro.telephony.default_cdma_sub", default_sub); property_set("ro.cdma.home.operator.numeric", op_numeric); |
