From 29d3f9438b4c4d125c49525216d32b6edd8fff97 Mon Sep 17 00:00:00 2001 From: Gerhard Rieger Date: Tue, 14 Oct 2008 22:18:37 +0200 Subject: [PATCH] xioopts.c: added cast for ip4addr in error message --- xioopts.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xioopts.c b/xioopts.c index 5b94f24..a5578ee 100644 --- a/xioopts.c +++ b/xioopts.c @@ -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) { Error6("setsockopt(%d, %d, %d, {0x%x}, "F_Zu"): %s", 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)); } break;