mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-29 15:52:07 +00:00
Bug 709915 - Change name of RIL socket from rilb2g to rilproxy. r=philikon a=ehsan
This commit is contained in:
parent
d7893e1768
commit
ab7a7f0447
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user