mcst-linux-kernel/patches-2024.06.26/ntp-4.2.8p14/0002-Bug151691-Avoid-multip...

39 lines
921 B
Diff

--- old/include/ntp_config.h 2020-03-03 23:41:29.000000000 +0000
+++ new/include/ntp_config.h 2023-08-30 08:45:01.921737021 +0000
@@ -277,16 +277,6 @@
/*
- * Poll Skew List
- */
-
-psl_item psl[17-3+1]; /* values for polls 3-17 */
- /* To simplify the runtime code we */
- /* don't want to have to special-case */
- /* dealing with a default */
-
-
-/*
** Data Minimization Items
*/
--- old/ntpd/ntp_config.c 2020-03-04 01:38:14.000000000 +0000
+++ new/ntpd/ntp_config.c 2023-08-30 08:47:12.009734008 +0000
@@ -137,6 +137,16 @@
#define MAXPPS 20 /* maximum length of PPS device string */
/*
+ * Poll Skew List
+ */
+
+static psl_item psl[17-3+1]; /* values for polls 3-17 */
+ /* To simplify the runtime code we */
+ /* don't want to have to special-case */
+ /* dealing with a default */
+
+
+/*
* Miscellaneous macros
*/
#define ISEOL(c) ((c) == '#' || (c) == '\n' || (c) == '\0')