summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMatthias Schiffer <mschiffer@universe-factory.net>2012-10-29 22:45:08 +0100
committerMatthias Schiffer <mschiffer@universe-factory.net>2012-10-29 22:45:08 +0100
commit2c6a4b5c117fc2a2a5ba730ffc86e75d71140200 (patch)
tree50e7df2faa9a137accb26cd580027eb3bbc75a8f /src
parent078b835209bd22b5cf3f497f2b06f3fad0a078ca (diff)
downloadfastd-2c6a4b5c117fc2a2a5ba730ffc86e75d71140200.tar
fastd-2c6a4b5c117fc2a2a5ba730ffc86e75d71140200.zip
Fix bind error messages
Diffstat (limited to 'src')
-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)))