ac = temp->data;
memcpy(ho->data + ho->offset, ac->data, ac->length);
/*
- * AC records are part of handover message payoad,
+ * AC records are part of handover message payload,
* so modifying offset.
*/
ho->offset += ac->length;
memcpy(ho->data + offset, cfg->data, cfg->length);
/*
* Configuration records (e.g. bt or wifi) records are not part
- * of handover payoad, they are consecutive ndef msgs. So
+ * of handover payload, they are consecutive ndef msgs. So
* here we are not modifying ho->offset.
*/
offset += cfg->length;
DBG("");
/*
- * Preparing empty Hs message incase remote devices has zero
+ * Preparing empty Hs message in case remote devices has zero
* alternative carries or unknown mime types or unknown
* configuration data.
*/
}
if (g_list_length(ac_msgs) == 0) {
- DBG("no alterative carriers, so preparing empty Hs message");
+ DBG("no alternative carriers, so preparing empty Hs message");
return near_ndef_prepare_empty_hs_message();
}
DBG("");
- /* Hr message should have atleast one carrier */
+ /* Hr message should have at least one carrier */
while (carriers) {
ret = near_ndef_prepare_ac_and_cfg_records(
string2carrier(carriers->data),
}
if (g_list_length(ac_msgs) == 0) {
- DBG("no alterative carriers to prepare Hr message");
+ DBG("no alternative carriers to prepare Hr message");
goto fail;
}
}
/*
- * Incase of multiple carriers, handover with any carrier
+ * In case of multiple carriers, handover with any carrier
* gets done then leave the loop.
*/
if (action == TRUE) {