[Git][NTPsec/ntpsec][ntpc] Feed it to the garbage smasher. -r2

James Browning gitlab at mg.gitlab.com
Wed Sep 9 16:23:23 UTC 2020



James Browning pushed to branch ntpc at NTPsec / ntpsec


Commits:
bcf9d718 by James Browning at 2020-09-09T09:22:48-07:00
Feed it to the garbage smasher. -r2

- - - - -


1 changed file:

- pylib/ntpc.py


Changes:

=====================================
pylib/ntpc.py
=====================================
@@ -13,7 +13,8 @@ LIB = 'ntpc'
 
 
 def importado():
-    """Load the ntpc library or throw an OSError trying.
+    """
+    Load the ntpc library or throw an OSError trying.
 
     Use find_library() which looks in: LD_LIBRARY_PATH,
     DYLD_LIBRARY_PATH, $home/lib, /.usr/local/lib,
@@ -42,14 +43,14 @@ def importado():
 
 
 _ntpc = importado()
-progname   = ctypes.c_char_p.in_dll(_ntpc, 'progname')
-# log_sys    = ctypes.c_bool.in_dll(_ntpc, 'syslogit')
-# log_term   = ctypes.c_bool.in_dll(_ntpc, 'termlogit')
-# log_pid    = ctypes.c_bool.in_dll(_ntpc, 'termlogit_pid')
-# log_time   = ctypes.c_bool.in_dll(_ntpc, 'msyslog_include_timestamp')
-
-TYPE_SYS   = ctypes.c_int.in_dll(_ntpc, 'SYS_TYPE').value
-TYPE_PEER  = ctypes.c_int.in_dll(_ntpc, 'PEER_TYPE').value
+progname = ctypes.c_char_p.in_dll(_ntpc, 'progname')
+# log_sys = ctypes.c_bool.in_dll(_ntpc, 'syslogit')
+# log_term = ctypes.c_bool.in_dll(_ntpc, 'termlogit')
+# log_pid = ctypes.c_bool.in_dll(_ntpc, 'termlogit_pid')
+# log_time = ctypes.c_bool.in_dll(_ntpc, 'msyslog_include_timestamp')
+
+TYPE_SYS = ctypes.c_int.in_dll(_ntpc, 'SYS_TYPE').value
+TYPE_PEER = ctypes.c_int.in_dll(_ntpc, 'PEER_TYPE').value
 TYPE_CLOCK = ctypes.c_int.in_dll(_ntpc, 'CLOCK_TYPE').value
 
 
@@ -108,7 +109,8 @@ def lfptofloat(in_string):
 
 
 def msyslog(level, in_string):
-    """Log send a message to terminal or output.
+    """
+    Log send a message to terminal or output.
 
     Can actually log to syslog, a file or stdout/arderr.
     Minimum of of features supported.



View it on GitLab: https://gitlab.com/NTPsec/ntpsec/-/commit/bcf9d718d852a1380460bac14b254cfe6ce5d8fd

-- 
View it on GitLab: https://gitlab.com/NTPsec/ntpsec/-/commit/bcf9d718d852a1380460bac14b254cfe6ce5d8fd
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/20200909/db26d3e7/attachment-0001.htm>


More information about the vc mailing list