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

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



James Browning pushed to branch ntpc at NTPsec / ntpsec


Commits:
0d81b212 by James Browning at 2020-09-09T09:20:55-07:00
Feed it to the garbage smasher. -r1

- - - - -


1 changed file:

- pylib/ntpc.py


Changes:

=====================================
pylib/ntpc.py
=====================================
@@ -13,8 +13,9 @@ 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,
     /usr/lib, /lib Returns the library handle.
@@ -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,8 +109,9 @@ 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/0d81b21285ebbe56d4a359bb8551e773a6902480

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


More information about the vc mailing list