summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoland McGrath <roland@gnu.org>2007-12-17 21:22:02 +0000
committerRoland McGrath <roland@gnu.org>2007-12-17 21:22:02 +0000
commite42976314d641cb26e87f6fb994b21f2c68437a8 (patch)
treeaff2f7c2cbf163e5aabef1537270179f048d93db
parent4cd4c5d6a28c4fbdc86651c4578f4c4f24efce08 (diff)
downloadglibc-e42976314d641cb26e87f6fb994b21f2c68437a8.tar.gz
2007-12-17 Roland McGrath <roland@redhat.com>
* inet/ether_line.c (ether_line): Remove unused variable.
-rw-r--r--inet/ether_line.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/inet/ether_line.c b/inet/ether_line.c
index 13c5f394cf..21a4c55679 100644
--- a/inet/ether_line.c
+++ b/inet/ether_line.c
@@ -1,4 +1,4 @@
-/* Copyright (C) 1996, 1999, 2002 Free Software Foundation, Inc.
+/* Copyright (C) 1996,1999,2002,2007 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
@@ -26,10 +26,7 @@
int
ether_line (const char *line, struct ether_addr *addr, char *hostname)
{
- size_t cnt;
- char *cp;
-
- for (cnt = 0; cnt < 6; ++cnt)
+ for (size_t cnt = 0; cnt < 6; ++cnt)
{
unsigned int number;
char ch;