X-Git-Url: http://git.tuebingen.mpg.de/?a=blobdiff_plain;f=acl.c;h=ddf93ecc6e083299daf7a573b0adce16c3b4051f;hb=d5cf034cce34635e065d91350475199adec80232;hp=2c90052658eda947ea586a55f292dc85f24e68f7;hpb=d5e27e2a346da2f18188d317926a60687d082732;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);