mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 709915 - Change name of RIL socket from rilb2g to rilproxy. r=philikon a=ehsan
This commit is contained in:
parent
fe871f0247
commit
e3c37b6e49
@ -65,6 +65,8 @@
|
|||||||
#define LOG(args...) printf(args);
|
#define LOG(args...) printf(args);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#define RIL_SOCKET_NAME "/dev/socket/rilproxy"
|
||||||
|
|
||||||
using namespace base;
|
using namespace base;
|
||||||
using namespace std;
|
using namespace std;
|
||||||
|
|
||||||
@ -144,10 +146,10 @@ RilClient::OpenSocket()
|
|||||||
size_t namelen;
|
size_t namelen;
|
||||||
int err;
|
int err;
|
||||||
memset(&addr, 0, sizeof(addr));
|
memset(&addr, 0, sizeof(addr));
|
||||||
strcpy(addr.sun_path, "/dev/socket/rilb2g");
|
strcpy(addr.sun_path, RIL_SOCKET_NAME);
|
||||||
addr.sun_family = AF_LOCAL;
|
addr.sun_family = AF_LOCAL;
|
||||||
mSocket.mFd = socket(AF_LOCAL, SOCK_STREAM, 0);
|
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
|
#else
|
||||||
struct hostent *hp;
|
struct hostent *hp;
|
||||||
struct sockaddr_in addr;
|
struct sockaddr_in addr;
|
||||||
|
Loading…
Reference in New Issue
Block a user