Skip to content

Commit

Permalink
Fix typo in function name nif_collection_resove_nif_cb
Browse files Browse the repository at this point in the history
This fixes the typo resove -> resolve across all platforms.

Signed-off-by: Winford <[email protected]>
  • Loading branch information
UncleGrumpy committed Oct 14, 2023
1 parent 23d24ce commit ac9b049
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 11 deletions.
8 changes: 4 additions & 4 deletions src/platforms/esp32/components/avm_sys/include/esp32_sys.h
Original file line number Diff line number Diff line change
Expand Up @@ -21,17 +21,17 @@
#ifndef _ESP32_SYS_H_
#define _ESP32_SYS_H_

#include "esp_pthread.h"
#include "freertos/FreeRTOS.h"
#include <esp_partition.h>
#include <freertos/queue.h>
#include "esp_pthread.h"

#if ESP_IDF_VERSION_MAJOR >= 5
#include <spi_flash_mmap.h>
#endif

#include <time.h>
#include <sys/poll.h>
#include <time.h>

#include "sys.h"

Expand All @@ -57,7 +57,7 @@
struct NifCollectionDef NAME##_nif_collection_def = { \
.nif_collection_init_cb = INIT_CB, \
.nif_collection_destroy_cb = DESTROY_CB, \
.nif_collection_resove_nif_cb = RESOLVE_NIF_CB \
.nif_collection_resolve_nif_cb = RESOLVE_NIF_CB \
}; \
\
struct NifCollectionDefListItem NAME##_nif_collection_def_list_item = { \
Expand Down Expand Up @@ -122,7 +122,7 @@ struct NifCollectionDef
{
const nif_collection_init_t nif_collection_init_cb;
const nif_collection_destroy_t nif_collection_destroy_cb;
const nif_collection_resolve_nif_t nif_collection_resove_nif_cb;
const nif_collection_resolve_nif_t nif_collection_resolve_nif_cb;
};

struct NifCollectionDefListItem
Expand Down
2 changes: 1 addition & 1 deletion src/platforms/esp32/components/avm_sys/sys.c
Original file line number Diff line number Diff line change
Expand Up @@ -550,7 +550,7 @@ void nif_collection_destroy_all(GlobalContext *global)
const struct Nif *nif_collection_resolve_nif(const char *name)
{
for (struct NifCollectionDefListItem *item = nif_collection_list; item != NULL; item = item->next) {
const struct Nif *res = item->def->nif_collection_resove_nif_cb(name);
const struct Nif *res = item->def->nif_collection_resolve_nif_cb(name);
if (res) {
return res;
}
Expand Down
4 changes: 2 additions & 2 deletions src/platforms/rp2040/src/lib/rp2040_sys.h
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@
struct NifCollectionDef NAME##_nif_collection_def = { \
.nif_collection_init_cb = INIT_CB, \
.nif_collection_destroy_cb = DESTROY_CB, \
.nif_collection_resove_nif_cb = RESOLVE_NIF_CB \
.nif_collection_resolve_nif_cb = RESOLVE_NIF_CB \
}; \
\
struct NifCollectionDefListItem NAME##_nif_collection_def_list_item = { \
Expand Down Expand Up @@ -97,7 +97,7 @@ struct NifCollectionDef
{
const nif_collection_init_t nif_collection_init_cb;
const nif_collection_destroy_t nif_collection_destroy_cb;
const nif_collection_resolve_nif_t nif_collection_resove_nif_cb;
const nif_collection_resolve_nif_t nif_collection_resolve_nif_cb;
};

struct NifCollectionDefListItem
Expand Down
2 changes: 1 addition & 1 deletion src/platforms/rp2040/src/lib/sys.c
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,7 @@ void nif_collection_destroy_all(GlobalContext *global)
const struct Nif *nif_collection_resolve_nif(const char *name)
{
for (struct NifCollectionDefListItem *item = nif_collection_list; item != NULL; item = item->next) {
const struct Nif *res = item->def->nif_collection_resove_nif_cb(name);
const struct Nif *res = item->def->nif_collection_resolve_nif_cb(name);
if (res) {
return res;
}
Expand Down
4 changes: 2 additions & 2 deletions src/platforms/stm32/src/lib/stm_sys.h
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
struct NifCollectionDef NAME##_nif_collection_def = { \
.nif_collection_init_cb = INIT_CB, \
.nif_collection_destroy_cb = DESTROY_CB, \
.nif_collection_resove_nif_cb = RESOLVE_NIF_CB \
.nif_collection_resolve_nif_cb = RESOLVE_NIF_CB \
}; \
\
struct NifCollectionDefListItem NAME##_nif_collection_def_list_item = { \
Expand Down Expand Up @@ -84,7 +84,7 @@ struct NifCollectionDef
{
const nif_collection_init_t nif_collection_init_cb;
const nif_collection_destroy_t nif_collection_destroy_cb;
const nif_collection_resolve_nif_t nif_collection_resove_nif_cb;
const nif_collection_resolve_nif_t nif_collection_resolve_nif_cb;
};

struct NifCollectionDefListItem
Expand Down
2 changes: 1 addition & 1 deletion src/platforms/stm32/src/lib/sys.c
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@ void nif_collection_destroy_all(GlobalContext *global)
const struct Nif *nif_collection_resolve_nif(const char *name)
{
for (struct NifCollectionDefListItem *item = nif_collection_list; item != NULL; item = item->next) {
const struct Nif *res = item->def->nif_collection_resove_nif_cb(name);
const struct Nif *res = item->def->nif_collection_resolve_nif_cb(name);
if (res) {
return res;
}
Expand Down

0 comments on commit ac9b049

Please sign in to comment.