ar71xx: correct button type for TL-MR3020 mode slider
[openwrt/staging/stintel.git] / package / network / services / ppp / patches / 206-compensate_time_change.patch
index fb6c65679ed3b1ffad5d2f90cc6d7cd3bb470566..a1eb6a716ceb6be876deb4cb440bcea321649885 100644 (file)
@@ -9,11 +9,11 @@ is confused resulting in unreliable data.
 This patch implements periodic clock checking to look for time warps, if one
 is detected, the internal counters are adjusted accordingly.
 
-Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
+Signed-off-by: Jo-Philipp Wich <jo@mein.io>
 
 --- a/pppd/main.c
 +++ b/pppd/main.c
-@@ -90,6 +90,7 @@
+@@ -89,6 +89,7 @@
  #include <sys/socket.h>
  #include <netinet/in.h>
  #include <arpa/inet.h>
@@ -21,7 +21,7 @@ Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
  
  #include "pppd.h"
  #include "magic.h"
-@@ -228,6 +229,7 @@ static struct subprocess *children;
+@@ -226,6 +227,7 @@ static struct subprocess *children;
  
  /* Prototypes for procedures local to this file. */
  
@@ -29,7 +29,7 @@ Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
  static void setup_signals __P((void));
  static void create_pidfile __P((int pid));
  static void create_linkpidfile __P((int pid));
-@@ -535,6 +537,7 @@ main(argc, argv)
+@@ -525,6 +527,7 @@ main(argc, argv)
            info("Starting link");
        }
  
@@ -37,7 +37,7 @@ Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
        gettimeofday(&start_time, NULL);
        script_unsetenv("CONNECT_TIME");
        script_unsetenv("BYTES_SENT");
-@@ -1267,6 +1270,36 @@ struct  callout {
+@@ -1274,6 +1277,36 @@ struct  callout {
  
  static struct callout *callout = NULL;        /* Callout list */
  static struct timeval timenow;                /* Current time */
@@ -74,7 +74,7 @@ Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
  
  /*
   * timeout - Schedule a timeout.
-@@ -1337,6 +1370,8 @@ calltimeout()
+@@ -1344,6 +1377,8 @@ calltimeout()
  {
      struct callout *p;
  
@@ -83,7 +83,7 @@ Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
      while (callout != NULL) {
        p = callout;
  
-@@ -1364,6 +1399,8 @@ timeleft(tvp)
+@@ -1371,6 +1406,8 @@ timeleft(tvp)
  {
      if (callout == NULL)
        return NULL;