diff options
author | Marcel Holtmann <marcel@holtmann.org> | 2005-01-27 19:59:22 +0000 |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2005-01-27 19:59:22 +0000 |
commit | 39654da8de5f5d3f9888cb2d4d576993414642ec (patch) | |
tree | a644f987226f2b8defd93f4b2a1821a2b88c8f15 | |
parent | 7715ad4f56e82c9eb4cf75020b1f3039d06ce115 (diff) |
More cleanups
-rw-r--r-- | test/l2test.c | 12 |
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); } |