Make vdc a C++ file as a base for further improvement.

Bug: 19704432
Change-Id: I784e8a91d3b0f4d6cd0dc668e9e55d0290f768e8
gugelfrei
Paul Crowley 9 years ago
parent 4571383cbf
commit fde9cd8c82

@ -98,7 +98,7 @@ include $(CLEAR_VARS)
LOCAL_ADDITIONAL_DEPENDENCIES := $(LOCAL_PATH)/Android.mk
LOCAL_CLANG := true
LOCAL_SRC_FILES:= vdc.c
LOCAL_SRC_FILES:= vdc.cpp
LOCAL_MODULE:= vdc
LOCAL_SHARED_LIBRARIES := libcutils
LOCAL_CFLAGS := $(vold_cflags)

@ -100,7 +100,7 @@ static int do_cmd(int sock, int argc, char **argv) {
}
static int do_monitor(int sock, int stop_after_cmd) {
char *buffer = malloc(4096);
char *buffer = (char *) malloc(4096);
if (!stop_after_cmd)
printf("[Connected to Vold]\n");
Loading…
Cancel
Save