summaryrefslogtreecommitdiffstats
path: root/dund/dun.c
diff options
context:
space:
mode:
Diffstat (limited to 'dund/dun.c')
-rw-r--r--dund/dun.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/dund/dun.c b/dund/dun.c
index 6611ad86..0593cb85 100644
--- a/dund/dun.c
+++ b/dund/dun.c
@@ -182,7 +182,8 @@ static int dun_create_tty(int sk, char *tty, int size)
{
struct sockaddr_rc sa;
struct stat st;
- int id, alen, try = 3;
+ socklen_t alen;
+ int id, try = 3;
struct rfcomm_dev_req req = {
flags: (1 << RFCOMM_REUSE_DLC) | (1 << RFCOMM_RELEASE_ONHUP),