summaryrefslogtreecommitdiff
path: root/test/inet
diff options
context:
space:
mode:
Diffstat (limited to 'test/inet')
-rw-r--r--test/inet/tst-ethers-line.c8
-rw-r--r--test/inet/tst-ethers.c2
2 files changed, 5 insertions, 5 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)
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;