summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/fastd.c4
-rw-r--r--src/printf.c2
2 files changed, 3 insertions, 3 deletions
diff --git a/src/fastd.c b/src/fastd.c
index fc6f016..88e7401 100644
--- a/src/fastd.c
+++ b/src/fastd.c
@@ -263,9 +263,9 @@ static void init_sockets(fastd_context *ctx) {
}
if (addr->bindtodev)
- pr_warn(ctx, "unable to bind to %I on `%s'", addr->addr, addr->bindtodev);
+ pr_warn(ctx, "unable to bind to %I on `%s'", &addr->addr, addr->bindtodev);
else
- pr_warn(ctx, "unable to bind to %I", addr->addr);
+ pr_warn(ctx, "unable to bind to %I", &addr->addr);
if (addr == default_v4 || addr == default_v6)
exit_error(ctx, "unable to bind to default address");
diff --git a/src/printf.c b/src/printf.c
index d2da770..d5f2ff6 100644
--- a/src/printf.c
+++ b/src/printf.c
@@ -44,7 +44,7 @@ static int snprint_peer_address(const fastd_context *ctx, char *buffer, size_t s
switch (address->sa.sa_family) {
case AF_UNSPEC:
- return snprintf(buffer, size, "floating");
+ return snprintf(buffer, size, "any");
case AF_INET:
if (inet_ntop(AF_INET, &address->in.sin_addr, addr_buf, sizeof(addr_buf)))