summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLuiz Augusto von Dentz <luiz.dentz@openbossa.org>2009-03-10 12:24:52 -0300
committerJohan Hedberg <johan.hedberg@nokia.com>2009-03-10 20:16:16 -0300
commitc4c03a457df6ad3708bf6abc8ad0a9d7edf3b454 (patch)
treef1448a67b1bcbcfa1d52038a250b769cabc67d92
parent8f619dd6228f1cfa750e562d4e2ea89396e8b4fd (diff)
Make use of AF_INET instead of AF_INET6.
-rw-r--r--network/common.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/network/common.c b/network/common.c
index f8967afd..479716a9 100644
--- a/network/common.c
+++ b/network/common.c
@@ -260,7 +260,7 @@ int bnep_if_up(const char *devname, uint16_t id)
}
}
- sd = socket(AF_INET6, SOCK_DGRAM, 0);
+ sd = socket(AF_INET, SOCK_DGRAM, 0);
memset(&ifr, 0, sizeof(ifr));
strncpy(ifr.ifr_name, devname, IF_NAMESIZE - 1);
@@ -350,7 +350,7 @@ int bnep_if_down(const char *devname)
strerror(errno), errno);
done:
- sd = socket(AF_INET6, SOCK_DGRAM, 0);
+ sd = socket(AF_INET, SOCK_DGRAM, 0);
memset(&ifr, 0, sizeof(ifr));
strncpy(ifr.ifr_name, devname, IF_NAMESIZE - 1);