summaryrefslogtreecommitdiffstats
path: root/test/scotest.c
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 /test/scotest.c
parent952e7cc56afa29f77a828aa256985ba38a06fa80 (diff)
Fix some GCC 4.0 warnings
Diffstat (limited to 'test/scotest.c')
-rw-r--r--test/scotest.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/test/scotest.c b/test/scotest.c
index 6447eab4..22a95fed 100644
--- a/test/scotest.c
+++ b/test/scotest.c
@@ -251,8 +251,9 @@ static void recv_mode(int sk)
static void send_mode(char *svr)
{
struct sco_options so;
+ socklen_t len;
uint32_t seq;
- int sk, i, opt;
+ int i, sk;
if ((sk = do_connect(svr)) < 0) {
syslog(LOG_ERR, "Can't connect to the server: %s (%d)",
@@ -260,8 +261,8 @@ static void send_mode(char *svr)
exit(1);
}
- opt = sizeof(so);
- if (getsockopt(sk, SOL_SCO, SCO_OPTIONS, &so, &opt) < 0) {
+ len = sizeof(so);
+ if (getsockopt(sk, SOL_SCO, SCO_OPTIONS, &so, &len) < 0) {
syslog(LOG_ERR, "Can't get SCO options: %s (%d)",
strerror(errno), errno);
exit(1);