projects
/
l2tpns.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
a350423
)
oops, last_clean should have been static
author
bodea
<bodea>
Mon, 30 May 2005 07:03:01 +0000
(07:03 +0000)
committer
bodea
<bodea>
Mon, 30 May 2005 07:03:01 +0000
(07:03 +0000)
l2tpns.c
patch
|
blob
|
history
diff --git
a/l2tpns.c
b/l2tpns.c
index
eb95d57
..
cd76347
100644
(file)
--- a/
l2tpns.c
+++ b/
l2tpns.c
@@
-4,7
+4,7
@@
// Copyright (c) 2002 FireBrick (Andrews & Arnold Ltd / Watchfront Ltd) - GPL licenced
// vim: sw=8 ts=8
// Copyright (c) 2002 FireBrick (Andrews & Arnold Ltd / Watchfront Ltd) - GPL licenced
// vim: sw=8 ts=8
-char const *cvs_id_l2tpns = "$Id: l2tpns.c,v 1.73.2.1
2 2005/05/30 06:35:19
bodea Exp $";
+char const *cvs_id_l2tpns = "$Id: l2tpns.c,v 1.73.2.1
3 2005/05/30 07:03:01
bodea Exp $";
#include <arpa/inet.h>
#include <assert.h>
#include <arpa/inet.h>
#include <assert.h>
@@
-2635,12
+2635,12
@@
static void mainloop(void)
// Handle timeouts, retries etc.
{
// Handle timeouts, retries etc.
{
- clockt last_clean = 0;
+ static clockt last_clean = 0;
+ if (!last_clean)
+ last_clean = TIME - 1;
+
if (last_clean != TIME)
{
if (last_clean != TIME)
{
- if (!last_clean)
- last_clean = TIME - 10;
-
regular_cleanups(TIME - last_clean);
last_clean = TIME;
TIME = now();
regular_cleanups(TIME - last_clean);
last_clean = TIME;
TIME = now();