Fix typo.
Change-Id: I607fc4f9f578363ff9d720f889660f3406e10293
Reviewed-on: https://pigweed-review.googlesource.com/c/open-dice/+/184350
Pigweed-Auto-Submit: Alan Stokes <alanstokes@google.com>
Presubmit-Verified: CQ Bot Account <pigweed-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Andrew Scull <ascull@google.com>
Commit-Queue: Auto-Submit <auto-submit@pigweed-service-accounts.iam.gserviceaccount.com>
diff --git a/src/cbor_reader.c b/src/cbor_reader.c
index 035a0bc..7f33b2f 100644
--- a/src/cbor_reader.c
+++ b/src/cbor_reader.c
@@ -29,10 +29,10 @@
return size > SIZE_MAX - in->cursor || in->cursor + size > in->buffer_size;
}
-static enum CborReadResult CborPeekIntialValueAndArgument(struct CborIn* in,
- uint8_t* size,
- enum CborType* type,
- uint64_t* val) {
+static enum CborReadResult CborPeekInitialValueAndArgument(struct CborIn* in,
+ uint8_t* size,
+ enum CborType* type,
+ uint64_t* val) {
uint8_t initial_byte;
uint8_t additional_information;
uint64_t value;
@@ -86,7 +86,7 @@
enum CborType in_type;
uint64_t raw;
enum CborReadResult res =
- CborPeekIntialValueAndArgument(in, &bytes, &in_type, &raw);
+ CborPeekInitialValueAndArgument(in, &bytes, &in_type, &raw);
if (res != CBOR_READ_RESULT_OK) {
return res;
}
@@ -124,7 +124,7 @@
enum CborType type;
uint64_t raw;
enum CborReadResult res =
- CborPeekIntialValueAndArgument(in, &bytes, &type, &raw);
+ CborPeekInitialValueAndArgument(in, &bytes, &type, &raw);
if (res != CBOR_READ_RESULT_OK) {
return res;
}
@@ -140,7 +140,7 @@
enum CborType type;
uint64_t raw;
enum CborReadResult res =
- CborPeekIntialValueAndArgument(in, &bytes, &type, &raw);
+ CborPeekInitialValueAndArgument(in, &bytes, &type, &raw);
if (res != CBOR_READ_RESULT_OK) {
return res;
}
@@ -159,7 +159,7 @@
uint8_t bytes;
enum CborType type;
enum CborReadResult res =
- CborPeekIntialValueAndArgument(in, &bytes, &type, val);
+ CborPeekInitialValueAndArgument(in, &bytes, &type, val);
if (res != CBOR_READ_RESULT_OK) {
return res;
}
@@ -192,7 +192,7 @@
uint8_t bytes;
enum CborType type;
enum CborReadResult res =
- CborPeekIntialValueAndArgument(in, &bytes, &type, tag);
+ CborPeekInitialValueAndArgument(in, &bytes, &type, tag);
if (res != CBOR_READ_RESULT_OK) {
return res;
}
@@ -229,7 +229,7 @@
uint64_t val;
enum CborReadResult res;
- res = CborPeekIntialValueAndArgument(&peeker, &bytes, &type, &val);
+ res = CborPeekInitialValueAndArgument(&peeker, &bytes, &type, &val);
if (res != CBOR_READ_RESULT_OK) {
return res;
}