static void combine_addr(char *buf, size_t len, const char* address,

                         uint16_t port)

{

    /* If the address-part contains a colon, it's an IPv6 IP so needs [] */

    if (strstr(address, ":")) {

        snprintf(buf, len, "[%s]:%u", address, port);

    } else {

        snprintf(buf, len, "%s:%u", address, port);

    }

}

static void combine_addr(char *buf, size_t len, const char* address,

                         uint16_t port)

{

    

    if (strstr(address, ":")) {

        snprintf(buf, len, "[%s]:%u", address, port);

    } else {

        snprintf(buf, len, "%s:%u", address, port);

    }

}

static void FUNC_0(char *VAR_0, size_t VAR_1, const char* VAR_2,

                         uint16_t VAR_3)

{

    

    if (strstr(VAR_2, ":")) {

        snprintf(VAR_0, VAR_1, "[%s]:%u", VAR_2, VAR_3);

    } else {

        snprintf(VAR_0, VAR_1, "%s:%u", VAR_2, VAR_3);

    }

}

static void FUNC_0(char *VAR_0, size_t VAR_1, const char* VAR_2,
uint16_t VAR_3)
{ if (strstr(VAR_2, ":")) { snprintf(VAR_0, VAR_1, "[%s]:%u", VAR_2, VAR_3); } else { snprintf(VAR_0, VAR_1, "%s:%u", VAR_2, VAR_3); } }