summaryrefslogtreecommitdiff
path: root/rfcomm
diff options
context:
space:
mode:
authorMarcel Holtmann <marcel@holtmann.org>2005-07-05 21:15:41 +0000
committerMarcel Holtmann <marcel@holtmann.org>2005-07-05 21:15:41 +0000
commit1f422e5f2b343d35a8c77ce4be16f74b2819b2bf (patch)
treee24bdebe86afcff3ce29cc0f47f05caec7ab7bc0 /rfcomm
parent952e7cc56afa29f77a828aa256985ba38a06fa80 (diff)
Fix some GCC 4.0 warnings
Diffstat (limited to 'rfcomm')
-rw-r--r--rfcomm/main.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/rfcomm/main.c b/rfcomm/main.c
index 86331b9d..decabcc6 100644
--- a/rfcomm/main.c
+++ b/rfcomm/main.c
@@ -258,8 +258,9 @@ static void cmd_connect(int ctl, int dev, bdaddr_t *bdaddr, int argc, char **arg
struct termios ti;
struct sigaction sa;
struct pollfd p;
+ socklen_t alen;
char dst[18], devname[MAXPATHLEN];
- int sk, fd, alen, try = 3;
+ int sk, fd, try = 3;
laddr.rc_family = AF_BLUETOOTH;
bacpy(&laddr.rc_bdaddr, bdaddr);
@@ -395,8 +396,9 @@ static void cmd_listen(int ctl, int dev, bdaddr_t *bdaddr, int argc, char **argv
struct termios ti;
struct sigaction sa;
struct pollfd p;
+ socklen_t alen;
char dst[18], devname[MAXPATHLEN];
- int sk, nsk, fd, alen, try = 3;
+ int sk, nsk, fd, try = 3;
laddr.rc_family = AF_BLUETOOTH;
bacpy(&laddr.rc_bdaddr, bdaddr);