OpenWrt – Diff between revs 2 and 3

Subversion Repositories:
Rev:
Show entire fileIgnore whitespace
Rev 2 Rev 3
Line 27... Line 27...
27 27
28 +static void check_time(void); 28 +static void check_time(void);
29 static void setup_signals __P((void)); 29 static void setup_signals __P((void));
30 static void create_pidfile __P((int pid)); 30 static void create_pidfile __P((int pid));
31 static void create_linkpidfile __P((int pid)); 31 static void create_linkpidfile __P((int pid));
32 @@ -527,6 +529,7 @@ main(argc, argv) 32 @@ -535,6 +537,7 @@ main(argc, argv)
33 info("Starting link"); 33 info("Starting link");
Line 34... Line 34...
34 } 34 }
35 35
36 + check_time(); 36 + check_time();
37 gettimeofday(&start_time, NULL); 37 gettimeofday(&start_time, NULL);
38 script_unsetenv("CONNECT_TIME"); 38 script_unsetenv("CONNECT_TIME");
Line 39... Line 39...
39 script_unsetenv("BYTES_SENT"); 39 script_unsetenv("BYTES_SENT");
40 @@ -1262,6 +1265,36 @@ struct callout { 40 @@ -1267,6 +1270,36 @@ struct callout {
41 41
42 static struct callout *callout = NULL; /* Callout list */ 42 static struct callout *callout = NULL; /* Callout list */
Line 72... Line 72...
72 + uptime_diff = new_diff; 72 + uptime_diff = new_diff;
73 +} 73 +}
Line 74... Line 74...
74 74
75 /* 75 /*
76 * timeout - Schedule a timeout. 76 * timeout - Schedule a timeout.
77 @@ -1332,6 +1365,8 @@ calltimeout() 77 @@ -1337,6 +1370,8 @@ calltimeout()
78 { 78 {
Line 79... Line 79...
79 struct callout *p; 79 struct callout *p;
80 80
81 + check_time(); 81 + check_time();
82 + 82 +
Line 83... Line 83...
83 while (callout != NULL) { 83 while (callout != NULL) {
84 p = callout; 84 p = callout;
85 85
86 @@ -1359,6 +1394,8 @@ timeleft(tvp) 86 @@ -1364,6 +1399,8 @@ timeleft(tvp)
87 { 87 {
88 if (callout == NULL) 88 if (callout == NULL)