diff --git a/src/DB.cc b/src/DB.cc index f3ae3878..8c83b523 100644 --- a/src/DB.cc +++ b/src/DB.cc @@ -275,7 +275,7 @@ DBStatement *DB::get_statement_internal(StatementID statement_id) { } if (statement_id.is_parameterized()) { - // printf("#DEBUG exanding %x '%s' to ", statement_id.flags, sql_query.c_str()); + // printf("#DEBUG expanding %x '%s' to ", statement_id.flags, sql_query.c_str()); auto start = sql_query.find("@SIZE@"); if (start != std::string::npos) { sql_query.replace(start, 6, statement_id.has_size() ? "and size = :size" : ""); diff --git a/src/sha1.cc b/src/sha1.cc index 0a42b135..b3b1443c 100644 --- a/src/sha1.cc +++ b/src/sha1.cc @@ -159,7 +159,7 @@ sha_transform(struct sha_ctx *ctx, uint32_t *data) { D = ctx->digest[3]; E = ctx->digest[4]; - /* Heavy mangling, in 4 sub-rounds of 20 interations each. */ + /* Heavy mangling, in 4 sub-rounds of 20 iterations each. */ subRound(A, B, C, D, E, f1, K1, data[0]); subRound(E, A, B, C, D, f1, K1, data[1]); subRound(D, E, A, B, C, f1, K1, data[2]); @@ -329,7 +329,7 @@ SHA1Final(unsigned char digest[20], SHA1_CTX *ctx) { else for (i = words; i < SHA_DATALEN - 2; i++) data[i] = 0; - /* Theres 512 = 2^9 bits in one block */ + /* There's 512 = 2^9 bits in one block */ data[SHA_DATALEN - 2] = (ctx->count_h << 9) | (ctx->count_l >> 23); data[SHA_DATALEN - 1] = (ctx->count_l << 9) | (ctx->index << 3); sha_transform(ctx, data);