diff options
author | Mike Frysinger <vapier@gentoo.org> | 2011-12-10 17:04:26 -0500 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2011-12-10 17:04:32 -0500 |
commit | ca46fb15bf39d8307c1d7741278e1b6f33de584c (patch) | |
tree | 2f72221a68b91c6624b9858965eacf953d393ffa /ipmaddr.c | |
parent | 153ab835ebcd3387f09a433fd1b2e0c711277e23 (diff) | |
download | net-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.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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; |