aboutsummaryrefslogtreecommitdiff
path: root/net/ntp/files
diff options
context:
space:
mode:
Diffstat (limited to 'net/ntp/files')
-rw-r--r--net/ntp/files/patch-aa38
-rw-r--r--net/ntp/files/patch-ad35
-rw-r--r--net/ntp/files/patch-ntp_control.c44
3 files changed, 38 insertions, 79 deletions
diff --git a/net/ntp/files/patch-aa b/net/ntp/files/patch-aa
new file mode 100644
index 000000000000..2b418488de44
--- /dev/null
+++ b/net/ntp/files/patch-aa
@@ -0,0 +1,38 @@
+--- ntpd/ntp_control.c.orig Mon Apr 9 13:19:56 2001
++++ ntpd/ntp_control.c Wed Apr 11 20:53:28 2001
+@@ -1823,7 +1823,7 @@
+ * Delete leading commas and white space
+ */
+ while (reqpt < reqend && (*reqpt == ',' ||
+- isspace((int)*reqpt)))
++ isspace((unsigned char)*reqpt)))
+ reqpt++;
+ if (reqpt >= reqend)
+ return (0);
+@@ -1846,7 +1846,7 @@
+ tp++;
+ }
+ if ((*tp == '\0') || (*tp == '=')) {
+- while (cp < reqend && isspace((int)*cp))
++ while (cp < reqend && isspace((unsigned char)*cp))
+ cp++;
+ if (cp == reqend || *cp == ',') {
+ buf[0] = '\0';
+@@ -1859,7 +1859,7 @@
+ if (*cp == '=') {
+ cp++;
+ tp = buf;
+- while (cp < reqend && isspace((int)*cp))
++ while (cp < reqend && isspace((unsigned char)*cp))
+ cp++;
+ while (cp < reqend && *cp != ',') {
+ *tp++ = *cp++;
+@@ -1870,7 +1870,7 @@
+ cp++;
+ while (tp > buf) {
+ *tp-- = '\0';
+- if (!isspace((int)(*tp)))
++ if (!isspace((unsigned char)(*tp)))
+ break;
+ }
+ reqpt = cp;
diff --git a/net/ntp/files/patch-ad b/net/ntp/files/patch-ad
deleted file mode 100644
index d6885c485f08..000000000000
--- a/net/ntp/files/patch-ad
+++ /dev/null
@@ -1,35 +0,0 @@
---- configure.orig Sun Feb 27 17:01:04 2000
-+++ configure Tue Mar 7 05:53:20 2000
-@@ -8273,19 +8273,19 @@
- # there is NO way that I can tell to tell if a given OS is using timespec or
- # timeval so just set it here for the one case that is KNOWN to use timespec.
-
--case "$ac_cv_header_timepps_h$ac_cv_header_sys_timepps_h" in
-- *yes*)
-- cat >>confdefs.h <<\EOF
--#define HAVE_PPSAPI 1
--EOF
--
-- ac_cv_var_oncore_ok=yes
-- cat >>confdefs.h <<\EOF
--#define HAVE_TIMESPEC 1
--EOF
--
-- ;;
--esac
-+#case "$ac_cv_header_timepps_h$ac_cv_header_sys_timepps_h" in
-+# *yes*)
-+# cat >>confdefs.h <<\EOF
-+##define HAVE_PPSAPI 1
-+#EOF
-+#
-+# ac_cv_var_oncore_ok=yes
-+# cat >>confdefs.h <<\EOF
-+##define HAVE_TIMESPEC 1
-+#EOF
-+#
-+# ;;
-+#esac
-
- # Check for ioctls TIOCGSERIAL, TIOCSSERIAL, ASYNC_PPS_CD_POS, ASYNC_PPS_CD_NEG
- echo $ac_n "checking for linux/serial.h... $ac_c" 1>&6
diff --git a/net/ntp/files/patch-ntp_control.c b/net/ntp/files/patch-ntp_control.c
deleted file mode 100644
index e93732fb37fc..000000000000
--- a/net/ntp/files/patch-ntp_control.c
+++ /dev/null
@@ -1,44 +0,0 @@
---- ntpd/ntp_control.c.orig Sat Jul 15 10:46:05 2000
-+++ ntpd/ntp_control.c Fri Apr 6 10:41:43 2001
-@@ -1782,7 +1782,7 @@
- * Delete leading commas and white space
- */
- while (reqpt < reqend && (*reqpt == ',' ||
-- isspace((int)*reqpt)))
-+ isspace((unsigned char)*reqpt)))
- reqpt++;
- if (reqpt >= reqend)
- return (0);
-@@ -1805,7 +1805,8 @@
- tp++;
- }
- if ((*tp == '\0') || (*tp == '=')) {
-- while (cp < reqend && isspace((int)*cp))
-+ while (cp < reqend &&
-+ isspace((unsigned char)*cp))
- cp++;
- if (cp == reqend || *cp == ',') {
- buf[0] = '\0';
-@@ -1819,15 +1820,18 @@
- cp++;
- tp = buf;
- while (cp < reqend &&
-- isspace((int)*cp))
-+ isspace((unsigned char)*cp))
- cp++;
-- while (cp < reqend && *cp !=
-- ',')
-+ while (cp < reqend && *cp != ',') {
- *tp++ = *cp++;
-+ if (tp >= buf + sizeof(buf))
-+ return (0);
-+ }
- if (cp < reqend)
- cp++;
- *tp = '\0';
-- while (isspace((int)(*(tp-1))))
-+ while (tp != buf &&
-+ isspace((unsigned char)(*(tp-1))))
- *(--tp) = '\0';
- reqpt = cp;
- *data = buf;