[Git][NTPsec/ntpsec][master] Fix typos/grammar

Matt Selsky gitlab at mg.gitlab.com
Sat Apr 15 14:29:55 UTC 2017


Matt Selsky pushed to branch master at NTPsec / ntpsec


Commits:
0edaa0e6 by Matt Selsky at 2017-04-15T10:26:25-04:00
Fix typos/grammar

- - - - -


5 changed files:

- docs/ntpsec.txt
- libntp/pymodule.c
- ntpd/ntp_leapsec.c
- pylib/util.py
- tests/pylib/test_util.py


Changes:

=====================================
docs/ntpsec.txt
=====================================
--- a/docs/ntpsec.txt
+++ b/docs/ntpsec.txt
@@ -181,7 +181,7 @@ codebase has been outright removed, with less than 5% new code added.
 
 * When running as root, the ntpq utility looks in /etc/ntp.conf and
   /usr/local/etc/ntp.keys to find credentials for control requests
-  that require authentication. Thus it will often not necessary to enter
+  that require authentication. Thus it will often not be necessary to enter
   them by hand. Note that your installation's locations for config and
   key files may differ from these; in that case this convenience
   feature will fail, as we have elected not to chase it down a


=====================================
libntp/pymodule.c
=====================================
--- a/libntp/pymodule.c
+++ b/libntp/pymodule.c
@@ -165,7 +165,7 @@ PyDoc_STRVAR(module_doc,
 "Python wrapper for selected libntp C library routines.\n\
 ");
 
-/* banishes pointless compiler warnings on verious Python versions */
+/* banishes pointless compiler warnings on various Python versions */
 extern PyMODINIT_FUNC initntpc(void);
 extern PyMODINIT_FUNC PyInit_ntpc(void);
 


=====================================
ntpd/ntp_leapsec.c
=====================================
--- a/ntpd/ntp_leapsec.c
+++ b/ntpd/ntp_leapsec.c
@@ -7,7 +7,7 @@
  * This is an attempt to get the leap second handling into a dedicated
  * module to make the somewhat convoluted logic testable.
  *
- * Note: Ths code assumes that the unsigned long long return value of
+ * Note: This code assumes that the unsigned long long return value of
  * strtoull(3) is large enough to parse any integer literal found in these
  * files, and that C will promote such values to uint64_t properly.
  *


=====================================
pylib/util.py
=====================================
--- a/pylib/util.py
+++ b/pylib/util.py
@@ -91,7 +91,7 @@ def portsplit(hostname):
 
 
 def stringfiltcooker(data):
-    "Cooks a filt* string of space seperated numbers, expects milliseconds"
+    "Cooks a filt* string of space separated numbers, expects milliseconds"
     parts = data.split()
     oomcount = {}
     minscale = -100000  # Keep track of the maxdownscale for each value


=====================================
tests/pylib/test_util.py
=====================================
--- a/tests/pylib/test_util.py
+++ b/tests/pylib/test_util.py
@@ -65,13 +65,13 @@ class TestPylibUtilMethods(unittest.TestCase):
         self.assertEqual(f("0.1234567890"), ("123.4567890", -1))
         # ditto, negative
         self.assertEqual(f("-0.1234567890"), ("-123.4567890", -1))
-        # Bizzare 1
+        # Bizarre 1
         self.assertEqual(f("-000.000012345678900987654321"),
                          ("-12.345678900987654321", -2))
-        # Bizzare 2
+        # Bizarre 2
         self.assertEqual(f("1234567890987654321000.00000000000042"),
                            ("1.23456789098765432100000000000000042", 7))
-        # Bizzare 3
+        # Bizarre 3
         self.assertEqual(f("00000000.000000000000"),
                          ("0", -4))
 



View it on GitLab: https://gitlab.com/NTPsec/ntpsec/commit/0edaa0e6919ee524271ac3ea75e7997250091532

---
View it on GitLab: https://gitlab.com/NTPsec/ntpsec/commit/0edaa0e6919ee524271ac3ea75e7997250091532
You're receiving this email because of your account on gitlab.com.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ntpsec.org/pipermail/vc/attachments/20170415/a7602cfe/attachment.html>


More information about the vc mailing list