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 ++++---- test/inet/tst-ethers.c | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) (limited to 'test/inet') 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) diff --git a/test/inet/tst-ethers.c b/test/inet/tst-ethers.c index 14b5a4378..6b6e10cd2 100644 --- a/test/inet/tst-ethers.c +++ b/test/inet/tst-ethers.c @@ -14,7 +14,7 @@ int main(void) char host[ETHER_LINE_LEN]; int i; int res = ether_hostton("teeth", &addr); - + if (res) return 1; -- cgit v1.2.3