[Git][NTPsec/ntpsec][master] More LGTM cleanups.
Eric S. Raymond
gitlab at mg.gitlab.com
Fri Sep 4 19:54:51 UTC 2020
Eric S. Raymond pushed to branch master at NTPsec / ntpsec
Commits:
c594f3e6 by Eric S. Raymond at 2020-09-04T15:56:29-04:00
More LGTM cleanups.
- - - - -
3 changed files:
- attic/digest-find.c
- lgtm.template.yml
- pylib/agentx.py
Changes:
=====================================
attic/digest-find.c
=====================================
@@ -35,7 +35,7 @@ const char* digests[] = {
"ChaCha20", "Poly1305",
NULL };
-unsigned char pkt[100];
+unsigned char packet[100];
int
main (
int argc,
@@ -84,7 +84,7 @@ main (
ctx = EVP_MD_CTX_create();
EVP_MD_CTX_set_flags(ctx, EVP_MD_CTX_FLAG_NON_FIPS_ALLOW);
EVP_DigestInit_ex(ctx, md, NULL);
- EVP_DigestUpdate(ctx, pkt, sizeof(pkt));
+ EVP_DigestUpdate(ctx, packet, sizeof(packet));
EVP_DigestFinal_ex(ctx, digest, &length);
EVP_MD_CTX_destroy(ctx);
printf("%10s %4d %6u\n", digests[i], keytype, length);
=====================================
lgtm.template.yml
=====================================
@@ -68,6 +68,7 @@ queries:
severity: "error"
# Specifically hide the results of FIXMEs
- exclude: python/FIXME-comment
+ - exclude: c/FIXME-comment
#########################################################################################
# Define changes to the default code extraction process. #
=====================================
pylib/agentx.py
=====================================
@@ -243,7 +243,7 @@ class PacketControl:
self.database.mib_upperBound(),
self.database.mib_context())
self.sendPacket(register, False)
- response = self.waitForResponse(register)
+ self.waitForResponse(register)
self.stillConnected = True
def waitForResponse(self, opkt, ignoreSID=False):
View it on GitLab: https://gitlab.com/NTPsec/ntpsec/-/commit/c594f3e65ed1f88859bfd3ca893b56dbac012e4a
--
View it on GitLab: https://gitlab.com/NTPsec/ntpsec/-/commit/c594f3e65ed1f88859bfd3ca893b56dbac012e4a
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/20200904/de46d19a/attachment-0001.htm>
More information about the vc
mailing list