summaryrefslogtreecommitdiff
path: root/test/inet/tst-ethers-line.c
diff options
context:
space:
mode:
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)