diff options
author | Marcel Holtmann <marcel@holtmann.org> | 2006-03-17 10:35:37 +0000 |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2006-03-17 10:35:37 +0000 |
commit | b21fbc61c36256713dd0896c0259edffb14bae45 (patch) | |
tree | 8111f0dca465639aeb5cae3aba4ff067d711ad80 /hcid/dbus-rfcomm.c | |
parent | 7858540a0474675cdfcbef5711ad1c49fc0b736c (diff) |
Fix 64-bit warning with socklen_t usage
Diffstat (limited to 'hcid/dbus-rfcomm.c')
-rw-r--r-- | hcid/dbus-rfcomm.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/hcid/dbus-rfcomm.c b/hcid/dbus-rfcomm.c index ad160d19..e85fefb4 100644 --- a/hcid/dbus-rfcomm.c +++ b/hcid/dbus-rfcomm.c @@ -188,7 +188,6 @@ static gboolean rfcomm_connect_cb(GIOChannel *chan, GIOCondition cond, struct pending_connect *c) { int sk, ret, err, fd = -1, i; - size_t alen; socklen_t len; char *ptr; struct rfcomm_dev_req req; @@ -218,8 +217,8 @@ static gboolean rfcomm_connect_cb(GIOChannel *chan, GIOCondition cond, debug("rfcomm_connect_cb: connected"); - alen = sizeof(c->laddr); - if (getsockname(sk, (struct sockaddr *)&c->laddr, &alen) < 0) { + len = sizeof(c->laddr); + if (getsockname(sk, (struct sockaddr *) &c->laddr, &len) < 0) { err = errno; error_failed(c->conn, c->msg, err); error("getsockname: %s (%d)", strerror(err), err); |