aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarcel Holtmann <marcel@holtmann.org>2023-12-11 10:26:41 +0100
committerMarcel Holtmann <marcel@holtmann.org>2023-12-11 10:26:41 +0100
commitc8a1b17a761162a2437b6cedb26afb26a9fb4fc1 (patch)
tree6fcf8f7aa4f70e79b3760032cc761821ada211eb
parentdfea4613c1f2360950fffcad3b97600565f5f76c (diff)
acd: Fix spelling of destroy
-rw-r--r--ell/acd.c4
-rw-r--r--ell/acd.h2
2 files changed, 3 insertions, 3 deletions
diff --git a/ell/acd.c b/ell/acd.c
index 8bb4c5c9..960dfebd 100644
--- a/ell/acd.c
+++ b/ell/acd.c
@@ -518,14 +518,14 @@ LIB_EXPORT void l_acd_destroy(struct l_acd *acd)
LIB_EXPORT bool l_acd_set_debug(struct l_acd *acd,
l_acd_debug_cb_t function,
- void *user_data, l_acd_destroy_func_t destory)
+ void *user_data, l_acd_destroy_func_t destroy)
{
if (unlikely(!acd))
return false;
acd->debug_handler = function;
acd->debug_data = user_data;
- acd->debug_destroy = destory;
+ acd->debug_destroy = destroy;
return true;
}
diff --git a/ell/acd.h b/ell/acd.h
index 06b2b311..40e5d5b0 100644
--- a/ell/acd.h
+++ b/ell/acd.h
@@ -40,7 +40,7 @@ bool l_acd_set_event_handler(struct l_acd *acd, l_acd_event_func_t cb,
bool l_acd_stop(struct l_acd *acd);
void l_acd_destroy(struct l_acd *acd);
bool l_acd_set_debug(struct l_acd *acd, l_acd_debug_cb_t function,
- void *user_data, l_acd_destroy_func_t destory);
+ void *user_data, l_acd_destroy_func_t destroy);
bool l_acd_set_skip_probes(struct l_acd *acd, bool skip);
bool l_acd_set_defend_policy(struct l_acd *acd,
enum l_acd_defend_policy policy);