Fixed some typos, courtesy of codespell
This commit is contained in:
@@ -340,7 +340,7 @@ static const int days[] = { 0, 31, 59, 90, 120, 151, 181, 212, 243, 273, 304, 33
|
|||||||
static const int tm_leap_1970 = 477;
|
static const int tm_leap_1970 = 477;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Converts ASN.1 UTCTIME or GENERALIZEDTIME into calender time
|
* Converts ASN.1 UTCTIME or GENERALIZEDTIME into calendar time
|
||||||
*/
|
*/
|
||||||
time_t asn1_to_time(const chunk_t *utctime, asn1_t type)
|
time_t asn1_to_time(const chunk_t *utctime, asn1_t type)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -112,7 +112,7 @@ struct private_des_crypter_t {
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* This helps C compiler generate the correct code for multiple functional
|
/* This helps C compiler generate the correct code for multiple functional
|
||||||
* units. It reduces register dependancies at the expense of 2 more
|
* units. It reduces register dependencies at the expense of 2 more
|
||||||
* registers */
|
* registers */
|
||||||
#ifndef DES_RISC1
|
#ifndef DES_RISC1
|
||||||
#define DES_RISC1
|
#define DES_RISC1
|
||||||
|
|||||||
@@ -1020,7 +1020,7 @@ START_TEST(test_printf_hook)
|
|||||||
int len;
|
int len;
|
||||||
|
|
||||||
/* %B should be the same as %b, which is what we check, comparing the
|
/* %B should be the same as %b, which is what we check, comparing the
|
||||||
* acutal result could be tricky as %b prints the chunk's memory address */
|
* actual result could be tricky as %b prints the chunk's memory address */
|
||||||
len = snprintf(buf, sizeof(buf), "%B", &printf_hook_data[_i].in);
|
len = snprintf(buf, sizeof(buf), "%B", &printf_hook_data[_i].in);
|
||||||
ck_assert(len >= 0 && len < sizeof(buf));
|
ck_assert(len >= 0 && len < sizeof(buf));
|
||||||
len = snprintf(mem, sizeof(mem), "%b", printf_hook_data[_i].in.ptr,
|
len = snprintf(mem, sizeof(mem), "%b", printf_hook_data[_i].in.ptr,
|
||||||
|
|||||||
Reference in New Issue
Block a user