summaryrefslogtreecommitdiff
path: root/test/inet/tst-ethers-line.c
diff options
context:
space:
mode:
authorBernhard Reutner-Fischer <rep.dot.nop@gmail.com>2008-07-23 11:23:36 +0000
committerBernhard Reutner-Fischer <rep.dot.nop@gmail.com>2008-07-23 11:23:36 +0000
commit1f020b178664857b0e107778d04fb971a58e6230 (patch)
treec1cd86593b5d354091e0fa3201c5789bec5c53ad /test/inet/tst-ethers-line.c
parentf1775381f91f1250b20f1949dfd0364ddb0ee9fc (diff)
- trim any trailing whitespace
Diffstat (limited to 'test/inet/tst-ethers-line.c')
-rw-r--r--test/inet/tst-ethers-line.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/test/inet/tst-ethers-line.c b/test/inet/tst-ethers-line.c
index 3b3387455..19cf2fbf4 100644
--- a/test/inet/tst-ethers-line.c
+++ b/test/inet/tst-ethers-line.c
@@ -24,7 +24,7 @@ int main(void)
int fd, i;
const char *ethers;
struct stat statb;
-
+
if ((fd = open(ETHER_FILE_NAME, O_RDONLY)) == -1) {
perror ("Cannot open file");
exit(1);
@@ -35,14 +35,14 @@ int main(void)
exit(1);
}
ethers = mmap(NULL, statb.st_size, PROT_READ, MAP_SHARED, fd, 0);
-
+
if (ethers == MAP_FAILED) {
perror("File mapping failed");
exit(1);
- }
+ }
ether_line(ethers, &addr, hostname);
-
+
for (i = 0; i < 6; i++) {
printf("%02x", addr.ether_addr_octet[i]);
if (i < 5)