summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--test/l2test.c12
1 files changed, 7 insertions, 5 deletions
diff --git a/test/l2test.c b/test/l2test.c
index ac831d97..82d34efa 100644
--- a/test/l2test.c
+++ b/test/l2test.c
@@ -597,17 +597,19 @@ static void senddump_mode(int sk)
static void reconnect_mode(char *svr)
{
- while(1) {
- int s = do_connect(svr);
- close(s);
+ while (1) {
+ int sk = do_connect(svr);
+ close(sk);
}
}
static void connect_mode(char *svr)
{
- int s;
- if ((s = do_connect(svr)) < 0)
+ int sk;
+
+ if ((sk = do_connect(svr)) < 0)
exit(1);
+
sleep(99999999);
}