[Git][NTPsec/ntpsec][master] Typos
James Browning
gitlab at mg.gitlab.com
Thu Feb 7 11:35:51 UTC 2019
James Browning pushed to branch master at NTPsec / ntpsec
Commits:
3fea9b1e by Matt Selsky at 2019-02-07T06:27:30Z
Typos
- - - - -
2 changed files:
- ntpd/nts_lib.c
- tests/ntpd/nts_lib.c
Changes:
=====================================
ntpd/nts_lib.c
=====================================
@@ -7,7 +7,7 @@
#include <stdlib.h>
#include <string.h>
-// a binary unpack function it should sort of reverse mempcpy
+// a binary unpack function it should sort of reverse memcpy
uint8_t *upf(void *src, void *dest, size_t n) {
(void)memcpy(dest, src, n);
return (uint8_t *)src + n;
@@ -49,7 +49,7 @@ int nts_record_parse(record_bits *in) {
* sets the record_length and record fields.
*
* returns 0 on success
- * returns 1 on memory allcation failure;
+ * returns 1 on memory allocation failure;
*/
int nts_record_form(record_bits *in) {
in->record_length = (4 + in->body_length);
@@ -87,8 +87,8 @@ int nts_cookie_clean(cookie_bits *a) {
}
/* Parse the plaintext to retrieve the AEAD algorithm to use when processing,
- * the c2s key used to decipher the AEAF extension from the client and the
- * s2c key used to encipher the AEAF extension returned to the client.
+ * the c2s key used to decipher the AEAD extension from the client and the
+ * s2c key used to encipher the AEAD extension returned to the client.
*
* Assumes the plaintext and recipe fields are set.
*
=====================================
tests/ntpd/nts_lib.c
=====================================
@@ -269,7 +269,7 @@ TEST(nts_lib, record_encode_text) {
free(record);
}
-/*TEST(nts_lib, existance) {
+/*TEST(nts_lib, existence) {
TEST_ASSERT_NOT_NULL(upf);
TEST_ASSERT_NOT_NULL(nts_record_form)
TEST_ASSERT_NOT_NULL(nts_record_parse)
@@ -280,7 +280,7 @@ TEST(nts_lib, record_encode_text) {
}*/
TEST_GROUP_RUNNER(nts_lib) {
-// RUN_TEST_CASE(nts_lib, existance);
+// RUN_TEST_CASE(nts_lib, existence);
RUN_TEST_CASE(nts_lib, record_decode_null);
RUN_TEST_CASE(nts_lib, record_decode_u16);
View it on GitLab: https://gitlab.com/NTPsec/ntpsec/commit/3fea9b1e24fd51c549c553920a7a9d88c9dc8ec9
--
View it on GitLab: https://gitlab.com/NTPsec/ntpsec/commit/3fea9b1e24fd51c549c553920a7a9d88c9dc8ec9
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/20190207/5e1a17ef/attachment-0001.html>
More information about the vc
mailing list