From 1922fb4d531fec7a63178f386af5b388727b5842 Mon Sep 17 00:00:00 2001 From: Szymon Janc Date: Tue, 7 Aug 2012 14:22:23 +0200 Subject: [PATCH] Fix some common spelling errors and typos --- plugins/handover.c | 2 +- plugins/mifare.c | 2 +- plugins/nfctype3.c | 2 +- plugins/nfctype4.c | 2 +- src/ndef.c | 20 ++++++++++---------- 5 files changed, 14 insertions(+), 14 deletions(-) diff --git a/plugins/handover.c b/plugins/handover.c index fc7c4a4..8ba550a 100644 --- a/plugins/handover.c +++ b/plugins/handover.c @@ -365,7 +365,7 @@ fail: /* * This function is a "dispatcher", to read Hr/Hs messages, - * and/or additionnal NDEF messages + * and/or additional NDEF messages */ static near_bool_t handover_read(int client_fd, uint32_t adapter_idx, uint32_t target_idx, diff --git a/plugins/mifare.c b/plugins/mifare.c index 2515b9c..534e05e 100644 --- a/plugins/mifare.c +++ b/plugins/mifare.c @@ -382,7 +382,7 @@ static int mifare_read_NFC_loop(uint8_t *resp, int length, void *data) mf_ck->nfc_data_length = mf_ck->nfc_data_length - length; - /* Addtionnal sectors to read ? */; + /* Additional sectors to read ? */; if (mf_ck->g_sect_list->next != NULL) { err = mifare_read_sector(data, /* cookie */ diff --git a/plugins/nfctype3.c b/plugins/nfctype3.c index d9857c7..6fdf664 100644 --- a/plugins/nfctype3.c +++ b/plugins/nfctype3.c @@ -130,7 +130,7 @@ static void t3_cookie_release(struct t3_cookie *cookie) cookie = NULL; } -/* common: Intialize structure to write block */ +/* common: Initialize structure to write block */ static void prepare_write_block(uint8_t *UID, struct type3_cmd *cmd, uint8_t block, uint8_t *data) { diff --git a/plugins/nfctype4.c b/plugins/nfctype4.c index 7c6079f..d389a64 100644 --- a/plugins/nfctype4.c +++ b/plugins/nfctype4.c @@ -167,7 +167,7 @@ static int ISO_Select(uint8_t *filename, uint8_t fnamelen, uint8_t P1, 0x00, /* CLA */ 0xA4, /* INS: Select file */ P1, /* P1: select by name */ - 0x00, /* P2: First or only occurence */ + 0x00, /* P2: First or only occurrence */ filename, /* cmd_data */ fnamelen, /* uint8_t cmd_data_length*/ cb, diff --git a/src/ndef.c b/src/ndef.c index 8958e59..f5ae5bc 100644 --- a/src/ndef.c +++ b/src/ndef.c @@ -648,7 +648,7 @@ static char *action_to_string(uint8_t action) * Validate type and type length and returns * type. * - * @param type Type name in hex foarmat + * @param type Type name in hex format * @param type_lenth Type name length * * @return enum record type @@ -672,7 +672,7 @@ static enum record_type get_external_record_type(uint8_t *type, * type. * * @param tnf TypeNameFormat value - * @param type Type name in hex foarmat + * @param type Type name in hex format * @param type_lenth Type name length * * @return enum record type @@ -783,8 +783,8 @@ static uint8_t validate_record_begin_and_end_bits(uint8_t *msg_mb, * * Parse the ndef record header and cache the begin, end, chunkflag, * short-record and type-name-format bits. ID length and field, record - * type, paylaod length and offset (where payload byte starts in input - * parameter). Validate offset for everystep forward against total + * type, payload length and offset (where payload byte starts in input + * parameter). Validate offset for every step forward against total * available length. * * @note : Caller responsibility to free the memory. @@ -1037,7 +1037,7 @@ parse_uri_record(uint8_t *rec, uint32_t length) } - DBG("Identfier '0X%X'", uri_record->identifier); + DBG("Identifier '0X%X'", uri_record->identifier); DBG("Field '%.*s'", uri_record->field_length, uri_record->field); return uri_record; @@ -1053,7 +1053,7 @@ fail: * @brief Validate titles records language code in Smartposter. * There must not be two or more records with the same language identifier. * - * @param[in] GSList * list of title recods (struct near_ndef_text_record *) + * @param[in] GSList * list of title records (struct near_ndef_text_record *) * * @return Zero on success * Negative value on failure @@ -1330,7 +1330,7 @@ static uint8_t near_ndef_set_mb_me(uint8_t *hdr, near_bool_t first_rec, } /** - * @brief Allocates ndef message struture + * @brief Allocates ndef message structure * * Allocates ndef message structure and fill message header byte, * type length byte, payload length and type name. Offset is payload @@ -1716,7 +1716,7 @@ struct near_ndef_message *near_ndef_prepare_handover_record(char* type_name, goto fail; /* - * Additionnal NDEF (associated to the ac records) + * Additional NDEF (associated to the ac records) * Add the BT record which is not part in hs initial size */ if (bt_msg != NULL) { @@ -2292,7 +2292,7 @@ fail: * @brief Prepare Text ndef record * * Prepare text ndef record with provided input data and return - * ndef message structure (lenght and byte stream) in success or + * ndef message structure (length and byte stream) in success or * NULL in failure case. * * @note : caller responsibility to free the input and output @@ -2610,7 +2610,7 @@ static struct near_ndef_message *build_sp_record(DBusMessage *msg) DBG(""); /* - * Currently this funtion supports only mandatory URI record, + * Currently this function supports only mandatory URI record, * TODO: Other records support. */ uri = get_uri_field(msg); -- 2.7.4