X-Git-Url: http://git.harvie.cz/?p=svn%2FPrometheus-QoS%2F.git;a=blobdiff_plain;f=parsehosts.c;h=d17c61917c32ad0235da1f3b036b768e3b56e27b;hp=db3bf2eb52f2003c647518487023cceb98d9d118;hb=f19d3cd0bca8ef24e8c78fb6ae24346dc3b7db36;hpb=a1204fc9fd3dab261b08e0d1491ec4099a762c5a diff --git a/parsehosts.c b/parsehosts.c index db3bf2e..d17c619 100644 --- a/parsehosts.c +++ b/parsehosts.c @@ -17,11 +17,11 @@ extern int free_min; extern const int highest_priority; /* This must be object oriented! This looks almost like constructor ;-) */ -void TheIP(void) +void TheIP(char *ipaddr) { create(ip,IP); ip->name = ""; - ip->addr = ""; + ip->addr = ipaddr; ip->sharing = NULL; ip->prio = highest_priority+1; ip->lmsid = -1; @@ -80,9 +80,8 @@ void parse_ip(char *str) if_exists(ip, ips, eq(ip->addr,ipaddr)); else { - TheIP(); + TheIP(ipaddr); } - ip->addr = ipaddr; ip->name = ipname; if(lmsid) {