Searched refs:hostbuf (Results 1 – 2 of 2) sorted by relevance
/system/core/adb/ |
D | services.c | 512 char hostbuf[100]; in connect_device() local 516 strncpy(hostbuf, host, sizeof(hostbuf) - 1); in connect_device() 518 if (portstr - host >= (ptrdiff_t)sizeof(hostbuf)) { in connect_device() 523 hostbuf[portstr - host] = 0; in connect_device() 532 snprintf(serial, sizeof(serial), "%s:%d", hostbuf, port); in connect_device() 534 fd = socket_network_client_timeout(hostbuf, port, SOCK_STREAM, 10); in connect_device()
|
D | adb.c | 1621 char hostbuf[100]; in handle_host_request() local 1624 snprintf(hostbuf, sizeof(hostbuf) - 1, "%s:5555", serial); in handle_host_request() 1625 serial = hostbuf; in handle_host_request()
|