diff --git a/lib_acl/src/event/events_timer.c b/lib_acl/src/event/events_timer.c index 101624094..0f1cef54a 100644 --- a/lib_acl/src/event/events_timer.c +++ b/lib_acl/src/event/events_timer.c @@ -280,7 +280,6 @@ void event_timer_trigger(ACL_EVENT *eventp) void *timer_arg; TIMER_NODE *iter; TIMER_INFO *info; - int n = 0; SET_TIME(eventp->present); @@ -294,7 +293,6 @@ void event_timer_trigger(ACL_EVENT *eventp) while (info) { acl_ring_prepend(&eventp->timers_ready, &info->tmp); info = info->next; - n++; } iter = AVL_NEXT(&eventp->timers->avl, iter); } diff --git a/lib_acl/src/net/acl_valid_hostname.c b/lib_acl/src/net/acl_valid_hostname.c index bd4b14502..fb0135825 100644 --- a/lib_acl/src/net/acl_valid_hostname.c +++ b/lib_acl/src/net/acl_valid_hostname.c @@ -27,7 +27,6 @@ int acl_valid_hostname(const char *name, int gripe) char *myname = "acl_valid_hostname"; const char *cp; int label_length = 0; - int label_count = 0; int non_numeric = 0; int ch; @@ -45,8 +44,6 @@ int acl_valid_hostname(const char *name, int gripe) */ for (cp = name; (ch = *(const unsigned char *) cp) != 0; cp++) { if (ACL_ISALNUM(ch) || ch == '_') { /* grr.. */ - if (label_length == 0) - label_count++; label_length++; if (label_length > ACL_VALID_LABEL_LEN) { if (gripe)