From ab7a7f0447bee0e879c838752329ca466158bae2 Mon Sep 17 00:00:00 2001 From: Kyle Machulis Date: Mon, 12 Dec 2011 12:39:17 -0800 Subject: [PATCH] Bug 709915 - Change name of RIL socket from rilb2g to rilproxy. r=philikon a=ehsan --- ipc/ril/Ril.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/ipc/ril/Ril.cpp b/ipc/ril/Ril.cpp index 2715aa661060..853f01c62b5e 100644 --- a/ipc/ril/Ril.cpp +++ b/ipc/ril/Ril.cpp @@ -65,6 +65,8 @@ #define LOG(args...) printf(args); #endif +#define RIL_SOCKET_NAME "/dev/socket/rilproxy" + using namespace base; using namespace std; @@ -144,10 +146,10 @@ RilClient::OpenSocket() size_t namelen; int err; memset(&addr, 0, sizeof(addr)); - strcpy(addr.sun_path, "/dev/socket/rilb2g"); + strcpy(addr.sun_path, RIL_SOCKET_NAME); addr.sun_family = AF_LOCAL; mSocket.mFd = socket(AF_LOCAL, SOCK_STREAM, 0); - alen = strlen("/dev/socket/rilb2g") + offsetof(struct sockaddr_un, sun_path) + 1; + alen = strlen(RIL_SOCKET_NAME) + offsetof(struct sockaddr_un, sun_path) + 1; #else struct hostent *hp; struct sockaddr_in addr;