Skip to content

Commit 550a78e

Browse files
DavidLin1577Arto Kinnunen
authored andcommitted
Fix function spelling mistake in Thread
lowpan_contex_get_by_id -> lowpan_context_get_by_id
1 parent 74c6024 commit 550a78e

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

source/6LoWPAN/Thread/thread_router_bootstrap.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1398,7 +1398,7 @@ static void thread_address_registration_tlv_parse(uint8_t *ptr, uint16_t data_le
13981398
ctxId = *ptr++;
13991399
if (ctxId & 0x80) {
14001400
ctxId &= 0x0f;
1401-
ctx = lowpan_contex_get_by_id(&cur->lowpan_contexts, ctxId);
1401+
ctx = lowpan_context_get_by_id(&cur->lowpan_contexts, ctxId);
14021402
if (ctx) {
14031403
memcpy(tempIPv6Address, ctx->prefix, 8);
14041404
memcpy(&tempIPv6Address[8], ptr, 8);

test/nanostack/unittest/stub/lowpan_context_stub.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626

2727
#define TRACE_GROUP_LOWPAN_CONTEXT "lCon"
2828

29-
lowpan_context_t *lowpan_contex_get_by_id(const lowpan_context_list_t *list, uint8_t id)
29+
lowpan_context_t *lowpan_context_get_by_id(const lowpan_context_list_t *list, uint8_t id)
3030
{
3131
return NULL;
3232
}

0 commit comments

Comments
 (0)