summaryrefslogtreecommitdiff
path: root/compat/ether.c
diff options
context:
space:
mode:
Diffstat (limited to 'compat/ether.c')
-rw-r--r--compat/ether.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/compat/ether.c b/compat/ether.c
index ec42909..7204b9d 100644
--- a/compat/ether.c
+++ b/compat/ether.c
@@ -1,7 +1,7 @@
/*
ether.c - useful ethernet functions for systems lacking those
- Copyright (C) 2008, 2009, 2010 Arthur de Jong
+ Copyright (C) 2008, 2009, 2010, 2012 Arthur de Jong
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
@@ -36,25 +36,25 @@
/* these functions are not really reentrant */
#ifndef HAVE_ETHER_NTOA_R
-char *ether_ntoa_r(const struct ether_addr *addr,char *buf)
+char *ether_ntoa_r(const struct ether_addr *addr, char *buf)
{
char *tmp;
- tmp=ether_ntoa(addr);
- if (tmp==NULL)
+ tmp = ether_ntoa(addr);
+ if (tmp == NULL)
return NULL;
- strcpy(buf,tmp);
+ strcpy(buf, tmp);
return buf;
}
#endif /* not HAVE_ETHER_NTOA_R */
#ifndef HAVE_ETHER_ATON_R
-struct ether_addr *ether_aton_r(const char *asc,struct ether_addr *addr)
+struct ether_addr *ether_aton_r(const char *asc, struct ether_addr *addr)
{
struct ether_addr *tmp;
- tmp=ether_aton(asc);
- if (tmp==NULL)
+ tmp = ether_aton(asc);
+ if (tmp == NULL)
return NULL;
- memcpy(addr,tmp,sizeof(struct ether_addr));
+ memcpy(addr, tmp, sizeof(struct ether_addr));
return addr;
}
#endif /* not HAVE_ETHER_ATON_R */