mirror of
https://gitee.com/acl-dev/acl.git
synced 2024-11-30 02:47:56 +08:00
Delete unused codes.
This commit is contained in:
parent
90c4f9d341
commit
3227944489
@ -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);
|
||||
}
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user