summaryrefslogtreecommitdiffstats
path: root/dund
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 /dund
parent952e7cc56afa29f77a828aa256985ba38a06fa80 (diff)
Fix some GCC 4.0 warnings
Diffstat (limited to 'dund')
-rw-r--r--dund/dun.c3
-rw-r--r--dund/main.c3
2 files changed, 4 insertions, 2 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),
diff --git a/dund/main.c b/dund/main.c
index 2bc4f9b5..a620c8de 100644
--- a/dund/main.c
+++ b/dund/main.c
@@ -163,7 +163,8 @@ static int do_listen(void)
listen(sk, 10);
while (!terminate) {
- int alen = sizeof(sa), nsk;
+ socklen_t alen = sizeof(sa);
+ int nsk;
char ba[40];
char ch[10];