if (pga_family(a) == AF_INET6) {
snprintf(dst, dstlen, "[%s]:%d", buf, pga_port(a));
} else if (pga_family(a) == AF_UNIX && a->scred.pid) {
- snprintf(dst, dstlen, "%s:%d$%u", buf, pga_port(a), a->scred.pid);
+ snprintf(dst, dstlen, "%s:%d$%lu", buf, pga_port(a), (unsigned long)a->scred.pid);
} else {
snprintf(dst, dstlen, "%s:%d", buf, pga_port(a));
}
if (pga_family(a) == AF_INET6) {
snprintf(dst, dstlen, "[%s]:%d", buf, pga_port(a));
} else if (pga_family(a) == AF_UNIX && a->scred.pid) {
- snprintf(dst, dstlen, "%s(%u@%s):%d", buf, a->scred.pid, cached_hostname(), pga_port(a));
+ snprintf(dst, dstlen, "%s(%lu@%s):%d", buf, (unsigned long)a->scred.pid, cached_hostname(), pga_port(a));
} else {
snprintf(dst, dstlen, "%s:%d", buf, pga_port(a));
}