ril: Align to AOSP libril

 * Adjusted whitespace to minimize diffs
 * Plugged memory leaks
 * Fix use-after-free
 * Use calloc instead of alloca
 * Reworked the Samsung request/response code to be
   more readable

Change-Id: Ifd07b525fc84e8a3fca584d4d412785974ca3482
diff --git a/ril/include/libril/ril_ex.h b/ril/include/libril/ril_ex.h
index 8e15d65..692e4df 100644
--- a/ril/include/libril/ril_ex.h
+++ b/ril/include/libril/ril_ex.h
@@ -37,7 +37,7 @@
     RIL_SOCKET_ID socket_id;
     int fdListen;
     int fdCommand;
-    char* processName;
+    const char* processName;
     struct ril_event* commands_event;
     struct ril_event* listen_event;
     void (*processCommandsCallback)(int fd, short flags, void *param);