Bug 709915 - Change name of RIL socket from rilb2g to rilproxy. r=philikon a=ehsan

This commit is contained in:
Kyle Machulis 2011-12-12 12:39:17 -08:00
parent d7893e1768
commit ab7a7f0447

View File

@ -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;