[Git][NTPsec/ntpsec][master] PEP8 whitespace cleanup
James Browning
gitlab at mg.gitlab.com
Thu Jan 31 10:26:57 UTC 2019
James Browning pushed to branch master at NTPsec / ntpsec
Commits:
5452f0f6 by Matt Selsky at 2019-01-31T06:31:45Z
PEP8 whitespace cleanup
As reported by pycodestyle:
ntpd/wscript:130:1: E101 indentation contains mixed spaces and tabs
ntpd/wscript:130:1: W191 indentation contains tabs
ntpd/wscript:131:1: E101 indentation contains mixed spaces and tabs
wscript:619:34: W291 trailing whitespace
wscript:635:61: E202 whitespace before ')'
wscript:638:17: E128 continuation line under-indented for visual indent
wscript:639:17: E128 continuation line under-indented for visual indent
wscript:643:5: E303 too many blank lines (3)
wscript:646:21: E128 continuation line under-indented for visual indent
wscript:652:21: E128 continuation line under-indented for visual indent
wscript:881:1: E302 expected 2 blank lines, found 1
wscript:887:1: E305 expected 2 blank lines after class or function definition, found 1
- - - - -
2 changed files:
- ntpd/wscript
- wscript
Changes:
=====================================
ntpd/wscript
=====================================
@@ -127,7 +127,7 @@ def build(ctx):
)
ntsd_source = [
- "nts.c",
+ "nts.c",
"ntsd.c",
]
=====================================
wscript
=====================================
@@ -616,7 +616,7 @@ int main(int argc, char **argv) {
('res_init', ["netinet/in.h", "arpa/nameser.h", "resolv.h"]),
('sched_setscheduler', ["sched.h"]),
('strlcpy', ["string.h"]),
- ('strlcat', ["string.h"])
+ ('strlcat', ["string.h"])
)
for ft in optional_functions:
probe_function(ctx, function=ft[0], prerequisites=ft[1])
@@ -632,24 +632,22 @@ int main(int argc, char **argv) {
# Very old versions of OpenSSL don't have cmac.h
# We could add ifdefs, but old crypto is deprecated in favor of CMAC
# and so far, all the systems that we want to support are new enough.
- ('CMAC_CTX_new', ["openssl/cmac.h"], "CRYPTO", True) )
+ ('CMAC_CTX_new', ["openssl/cmac.h"], "CRYPTO", True))
for ft in required_functions:
- probe_function(ctx, function=ft[0],
- prerequisites=ft[1], use=ft[2],
- mandatory=ft[3])
-
-
+ probe_function(ctx, function=ft[0],
+ prerequisites=ft[1], use=ft[2],
+ mandatory=ft[3])
# check for BSD versions outside of libc
if not ctx.get_define("HAVE_STRLCAT"):
ret = probe_function(ctx, function='strlcat',
- prerequisites=['bsd/string.h'])
+ prerequisites=['bsd/string.h'])
if ret:
ctx.define("HAVE_STRLCAT", 1, comment="Using bsd/strlcat")
if not ctx.get_define("HAVE_STRLCPY"):
ret = probe_function(ctx, function='strlcpy',
- prerequisites=['bsd/string.h'])
+ prerequisites=['bsd/string.h'])
if ret:
ctx.define("HAVE_STRLCPY", 1, comment="Using bsd/strlcpy")
@@ -878,11 +876,13 @@ def bin_test(ctx):
from wafhelpers.bin_test import cmd_bin_test
cmd_bin_test(ctx, config)
+
def bin_test_summary(ctx):
"""Display results of binary check, use after tests."""
from wafhelpers.bin_test import bin_test_summary
bin_test_summary(ctx)
+
# Borrowed from https://www.rtems.org/
variant_cmd = (
("build", BuildContext),
View it on GitLab: https://gitlab.com/NTPsec/ntpsec/commit/5452f0f68c34a0de0a82099d664289a4a4425fe7
--
View it on GitLab: https://gitlab.com/NTPsec/ntpsec/commit/5452f0f68c34a0de0a82099d664289a4a4425fe7
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/20190131/01cb52fd/attachment-0001.html>
More information about the vc
mailing list