Searched refs:portstr (Results 1 – 1 of 1) sorted by relevance
1240 char* portstr = strchr(host, ':'); in connect_device() local1245 if (portstr) { in connect_device()1246 if (portstr - host >= (ptrdiff_t)sizeof(hostbuf)) { in connect_device()1251 hostbuf[portstr - host] = 0; in connect_device()1252 if (sscanf(portstr + 1, "%d", &port) == 0) { in connect_device()1253 snprintf(buffer, buffer_size, "bad port number %s", portstr); in connect_device()