From 1f020b178664857b0e107778d04fb971a58e6230 Mon Sep 17 00:00:00 2001 From: Bernhard Reutner-Fischer Date: Wed, 23 Jul 2008 11:23:36 +0000 Subject: - trim any trailing whitespace --- test/inet/tst-ethers-line.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'test/inet/tst-ethers-line.c') 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) -- cgit v1.2.3