summaryrefslogtreecommitdiff
path: root/ipmaddr.c
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2011-12-10 17:04:26 -0500
committerMike Frysinger <vapier@gentoo.org>2011-12-10 17:04:32 -0500
commitca46fb15bf39d8307c1d7741278e1b6f33de584c (patch)
tree2f72221a68b91c6624b9858965eacf953d393ffa /ipmaddr.c
parent153ab835ebcd3387f09a433fd1b2e0c711277e23 (diff)
downloadnet-tools-ca46fb15bf39d8307c1d7741278e1b6f33de584c.tar.gz
net-tools-ca46fb15bf39d8307c1d7741278e1b6f33de584c.tar.bz2
net-tools-ca46fb15bf39d8307c1d7741278e1b6f33de584c.zip
ignore return value of fgets calls we dont care about
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Diffstat (limited to 'ipmaddr.c')
-rw-r--r--ipmaddr.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/ipmaddr.c b/ipmaddr.c
index 3927aad..de017df 100644
--- a/ipmaddr.c
+++ b/ipmaddr.c
@@ -181,7 +181,8 @@ void read_igmp(struct ma_info **result_p)
if (!fp)
return;
memset(&m, 0, sizeof(m));
- fgets(buf, sizeof(buf), fp);
+ if (fgets(buf, sizeof(buf), fp))
+ /* eat line */;
m.addr.family = AF_INET;
m.addr.bitlen = 32;