summaryrefslogtreecommitdiffstats
path: root/zebra/ipforward_proc.c
diff options
context:
space:
mode:
authorDonald Sharp <sharpd@cumulusnetworks.com>2020-02-24 14:36:09 +0100
committerDonald Sharp <sharpd@cumulusnetworks.com>2020-02-27 15:41:58 +0100
commit2acf1ad1dd3d9d138a0c24bff55918efb8e953eb (patch)
tree50c66231fead2b95256421b0c67f45b64c61a462 /zebra/ipforward_proc.c
parentldpd: Cleanup set but unused variables (diff)
downloadfrr-2acf1ad1dd3d9d138a0c24bff55918efb8e953eb.tar.xz
frr-2acf1ad1dd3d9d138a0c24bff55918efb8e953eb.zip
zebra: Cleanup set but unused variables
There existed some variables set but never used. Clean this up. Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
Diffstat (limited to 'zebra/ipforward_proc.c')
-rw-r--r--zebra/ipforward_proc.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/zebra/ipforward_proc.c b/zebra/ipforward_proc.c
index 226f72293..4bd160ddb 100644
--- a/zebra/ipforward_proc.c
+++ b/zebra/ipforward_proc.c
@@ -34,9 +34,7 @@ static const char proc_net_snmp[] = "/proc/net/snmp";
static void dropline(FILE *fp)
{
- int c;
-
- while ((c = getc(fp)) != '\n')
+ while (getc(fp) != '\n')
;
}