X-Git-Url: http://git.tuebingen.mpg.de/?a=blobdiff_plain;f=acl.c;h=ddf93ecc6e083299daf7a573b0adce16c3b4051f;hb=501b83a39828c9d3db5498c7352a2e5b60175bba;hp=2c90052658eda947ea586a55f292dc85f24e68f7;hpb=c75c35b176cdacf157d27617e954961c88f33975;p=paraslash.git diff --git a/acl.c b/acl.c index 2c900526..ddf93ecc 100644 --- a/acl.c +++ b/acl.c @@ -81,7 +81,7 @@ no_match: */ void acl_add_entry(struct list_head *acl, char *addr, int netmask) { - struct access_info *ai = para_malloc(sizeof(struct access_info)); + struct access_info *ai = alloc(sizeof(struct access_info)); inet_pton(AF_INET, addr, &ai->addr); ai->netmask = netmask; @@ -101,7 +101,7 @@ static void acl_del_entry(struct list_head *acl, char *addr, unsigned netmask) struct access_info *ai, *tmp; struct in_addr to_delete; - PARA_NOTICE_LOG("removing entries matching %s/%u\n", addr, netmask); + PARA_INFO_LOG("removing entries matching %s/%u\n", addr, netmask); inet_pton(AF_INET, addr, &to_delete); list_for_each_entry_safe(ai, tmp, acl, node) { @@ -111,7 +111,7 @@ static void acl_del_entry(struct list_head *acl, char *addr, unsigned netmask) const char *p = inet_ntop(AF_INET, &ai->addr.s_addr, dst, sizeof(dst)); if (p) - PARA_INFO_LOG("removing %s/%u\n", p, + PARA_DEBUG_LOG("removing %s/%u\n", p, ai->netmask); list_del(&ai->node); free(ai);