1
0
mirror of https://github.com/moparisthebest/socat synced 2024-12-22 06:58:47 -05:00

xioopts.c: added cast for ip4addr in error message

This commit is contained in:
Gerhard Rieger 2008-10-14 22:18:37 +02:00
parent a8ff9481e9
commit 29d3f9438b

View File

@ -3090,7 +3090,7 @@ int applyopts(int fd, struct opt *opts, enum e_phase phase) {
&opt->value.u_ip4addr, sizeof(opt->value.u_ip4addr)) < 0) { &opt->value.u_ip4addr, sizeof(opt->value.u_ip4addr)) < 0) {
Error6("setsockopt(%d, %d, %d, {0x%x}, "F_Zu"): %s", Error6("setsockopt(%d, %d, %d, {0x%x}, "F_Zu"): %s",
fd, opt->desc->major, opt->desc->minor, fd, opt->desc->major, opt->desc->minor,
opt->value.u_ip4addr, sizeof(opt->value.u_ip4addr), *(uint32_t *)&opt->value.u_ip4addr, sizeof(opt->value.u_ip4addr),
strerror(errno)); strerror(errno));
} }
break; break;