diff options
author | Oliver Smith <osmith@sysmocom.de> | 2023-07-17 11:35:35 +0200 |
---|---|---|
committer | Oliver Smith <osmith@sysmocom.de> | 2023-07-17 11:40:38 +0200 |
commit | 74e999ceb2b49cf499c00799fae4b5069e4b2e7c (patch) | |
tree | bd384d16bff400b324d3d4e9cf2bb92699c56ba0 | |
parent | b43722d878616bed05b4cb8a49d19c5f02bd58ab (diff) |
skeletons: fix various typos
These typos have been fixed in the generated rspro code in
osmo-remsim.git. Fix them here as well, so when regenerating the code we
don't re-introduce the typos.
Change-Id: I9e2fa5a2e0c2bf153f67c1ae363baa1abb44f7ad
-rw-r--r-- | skeletons/INTEGER.h | 4 | ||||
-rw-r--r-- | skeletons/NativeInteger.c | 2 | ||||
-rw-r--r-- | skeletons/OCTET_STRING.c | 2 | ||||
-rw-r--r-- | skeletons/ber_tlv_tag.c | 2 | ||||
-rw-r--r-- | skeletons/constr_CHOICE.c | 2 | ||||
-rw-r--r-- | skeletons/constr_SEQUENCE.c | 2 | ||||
-rw-r--r-- | skeletons/constr_SET.c | 2 | ||||
-rw-r--r-- | skeletons/constr_SET_OF.c | 2 | ||||
-rw-r--r-- | skeletons/constr_TYPE.h | 4 | ||||
-rw-r--r-- | skeletons/converter-sample.c | 2 | ||||
-rw-r--r-- | skeletons/per_opentype.c | 2 | ||||
-rw-r--r-- | skeletons/per_support.h | 2 |
12 files changed, 14 insertions, 14 deletions
diff --git a/skeletons/INTEGER.h b/skeletons/INTEGER.h index e8b36c79..c8edf126 100644 --- a/skeletons/INTEGER.h +++ b/skeletons/INTEGER.h @@ -68,8 +68,8 @@ enum asn_strtol_result_e { ASN_STRTOL_ERROR_RANGE = -3, /* Input outside of numeric range for long type */ ASN_STRTOL_ERROR_INVAL = -2, /* Invalid data encountered (e.g., "+-") */ ASN_STRTOL_EXPECT_MORE = -1, /* More data expected (e.g. "+") */ - ASN_STRTOL_OK = 0, /* Conversion succeded, number ends at (*end) */ - ASN_STRTOL_EXTRA_DATA = 1, /* Conversion succeded, but the string has extra stuff */ + ASN_STRTOL_OK = 0, /* Conversion succeeded, number ends at (*end) */ + ASN_STRTOL_EXTRA_DATA = 1, /* Conversion succeeded, but the string has extra stuff */ }; enum asn_strtol_result_e asn_strtol_lim(const char *str, const char **end, long *l); diff --git a/skeletons/NativeInteger.c b/skeletons/NativeInteger.c index ef17bee3..17a58ea2 100644 --- a/skeletons/NativeInteger.c +++ b/skeletons/NativeInteger.c @@ -94,7 +94,7 @@ NativeInteger_decode_ber(asn_codec_ctx_t *opt_codec_ctx, /* * ASN.1 encoded INTEGER: buf_ptr, length * Fill the native, at the same time checking for overflow. - * If overflow occured, return with RC_FAIL. + * If overflow occurred, return with RC_FAIL. */ { INTEGER_t tmp; diff --git a/skeletons/OCTET_STRING.c b/skeletons/OCTET_STRING.c index 3e424e7f..6df9a0aa 100644 --- a/skeletons/OCTET_STRING.c +++ b/skeletons/OCTET_STRING.c @@ -109,7 +109,7 @@ asn_TYPE_descriptor_t asn_DEF_OCTET_STRING = { /* * The main reason why ASN.1 is still alive is that too much time and effort * is necessary for learning it more or less adequately, thus creating a gut - * necessity to demonstrate that aquired skill everywhere afterwards. + * necessity to demonstrate that acquired skill everywhere afterwards. * No, I am not going to explain what the following stuff is. */ struct _stack_el { diff --git a/skeletons/ber_tlv_tag.c b/skeletons/ber_tlv_tag.c index 42708760..adf3a252 100644 --- a/skeletons/ber_tlv_tag.c +++ b/skeletons/ber_tlv_tag.c @@ -42,7 +42,7 @@ ber_fetch_tag(const void *ptr, size_t size, ber_tlv_tag_t *tag_r) { */ if(val >> ((8 * sizeof(val)) - 9)) { /* - * We would not be able to accomodate + * We would not be able to accommodate * any more tag bits. */ return -1; diff --git a/skeletons/constr_CHOICE.c b/skeletons/constr_CHOICE.c index 18c24cde..6a88b296 100644 --- a/skeletons/constr_CHOICE.c +++ b/skeletons/constr_CHOICE.c @@ -156,7 +156,7 @@ CHOICE_decode_ber(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td, } if(ctx->left >= 0) { - /* ?Substracted below! */ + /* ?Subtracted below! */ ctx->left += rval.consumed; } ADVANCE(rval.consumed); diff --git a/skeletons/constr_SEQUENCE.c b/skeletons/constr_SEQUENCE.c index 21e51901..0ffa282a 100644 --- a/skeletons/constr_SEQUENCE.c +++ b/skeletons/constr_SEQUENCE.c @@ -166,7 +166,7 @@ SEQUENCE_decode_ber(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td, } if(ctx->left >= 0) - ctx->left += rval.consumed; /* ?Substracted below! */ + ctx->left += rval.consumed; /* ?Subtracted below! */ ADVANCE(rval.consumed); NEXT_PHASE(ctx); diff --git a/skeletons/constr_SET.c b/skeletons/constr_SET.c index 8a124c09..cc195dd6 100644 --- a/skeletons/constr_SET.c +++ b/skeletons/constr_SET.c @@ -154,7 +154,7 @@ SET_decode_ber(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td, } if(ctx->left >= 0) - ctx->left += rval.consumed; /* ?Substracted below! */ + ctx->left += rval.consumed; /* ?Subtracted below! */ ADVANCE(rval.consumed); NEXT_PHASE(ctx); diff --git a/skeletons/constr_SET_OF.c b/skeletons/constr_SET_OF.c index 2fd530ec..eb1d4810 100644 --- a/skeletons/constr_SET_OF.c +++ b/skeletons/constr_SET_OF.c @@ -122,7 +122,7 @@ SET_OF_decode_ber(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td, } if(ctx->left >= 0) - ctx->left += rval.consumed; /* ?Substracted below! */ + ctx->left += rval.consumed; /* ?Subtracted below! */ ADVANCE(rval.consumed); ASN_DEBUG("Structure consumes %ld bytes, " diff --git a/skeletons/constr_TYPE.h b/skeletons/constr_TYPE.h index 13c60f33..e244d203 100644 --- a/skeletons/constr_TYPE.h +++ b/skeletons/constr_TYPE.h @@ -158,8 +158,8 @@ typedef struct asn_TYPE_member_s { typedef struct asn_TYPE_tag2member_s { ber_tlv_tag_t el_tag; /* Outmost tag of the member */ int el_no; /* Index of the associated member, base 0 */ - int toff_first; /* First occurence of the el_tag, relative */ - int toff_last; /* Last occurence of the el_tag, relatvie */ + int toff_first; /* First occurrence of the el_tag, relative */ + int toff_last; /* Last occurrence of the el_tag, relatvie */ } asn_TYPE_tag2member_t; /* diff --git a/skeletons/converter-sample.c b/skeletons/converter-sample.c index 2f74a800..6047273b 100644 --- a/skeletons/converter-sample.c +++ b/skeletons/converter-sample.c @@ -390,7 +390,7 @@ buffer_dump() { /* * Move the buffer content left N bits, possibly joining it with - * preceeding content. + * preceding content. */ static void buffer_shift_left(size_t offset, int bits) { diff --git a/skeletons/per_opentype.c b/skeletons/per_opentype.c index 8c42f8be..e697cbb0 100644 --- a/skeletons/per_opentype.c +++ b/skeletons/per_opentype.c @@ -154,7 +154,7 @@ uper_open_type_get_simple(asn_codec_ctx_t *ctx, asn_TYPE_descriptor_t *td, } else { FREEMEM(buf); /* rv.code could be RC_WMORE, nonsense in this context */ - rv.code = RC_FAIL; /* Noone would give us more */ + rv.code = RC_FAIL; /* No one would give us more */ } return rv; diff --git a/skeletons/per_support.h b/skeletons/per_support.h index 181fe248..ed945ced 100644 --- a/skeletons/per_support.h +++ b/skeletons/per_support.h @@ -53,7 +53,7 @@ typedef struct asn_per_data_s { */ int32_t per_get_few_bits(asn_per_data_t *per_data, int get_nbits); -/* Undo the immediately preceeding "get_few_bits" operation */ +/* Undo the immediately preceding "get_few_bits" operation */ void per_get_undo(asn_per_data_t *per_data, int get_nbits); /* |