summaryrefslogtreecommitdiff
path: root/source/lib/wins_srv.c
diff options
context:
space:
mode:
Diffstat (limited to 'source/lib/wins_srv.c')
-rw-r--r--source/lib/wins_srv.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/source/lib/wins_srv.c b/source/lib/wins_srv.c
index 0fb0648fec1..0e184a6b7ce 100644
--- a/source/lib/wins_srv.c
+++ b/source/lib/wins_srv.c
@@ -183,14 +183,16 @@ static void parse_ip(struct tagged_ip *ip, const char *str)
char *s = strchr(str, ':');
if (!s) {
fstrcpy(ip->tag, "*");
- ip->ip = *interpret_addr2(str);
+ (void)interpret_addr2(&ip->ip,str);
return;
}
- ip->ip = *interpret_addr2(s+1);
+ (void)interpret_addr2(&ip->ip,s+1);
fstrcpy(ip->tag, str);
s = strchr(ip->tag, ':');
- if (s) *s = 0;
+ if (s) {
+ *s = 0;
+ }
}