--- libelwix/src/net.c 2013/01/17 10:05:35 1.1.1.1 +++ libelwix/src/net.c 2013/05/26 20:03:19 1.1.1.1.6.1 @@ -3,7 +3,7 @@ * by Michael Pounov * * $Author: misho $ -* $Id: net.c,v 1.1.1.1 2013/01/17 10:05:35 misho Exp $ +* $Id: net.c,v 1.1.1.1.6.1 2013/05/26 20:03:19 misho Exp $ * ************************************************************************** The ELWIX and AITNET software is distributed under the following @@ -54,7 +54,7 @@ SUCH DAMAGE. * @len = string length * return: NULL error or !=NULL string a */ -inline char * +char * e_ether_ntoa(const struct e_ether_addr *n, char * __restrict a, int len) { if (!n || !a) @@ -77,7 +77,7 @@ e_ether_ntoa(const struct e_ether_addr *n, char * __re * @e = ethernet address structure, like struct ether_addr * return: NULL error or !=NULL ethernet address structure */ -inline struct e_ether_addr * +struct e_ether_addr * e_ether_aton(const char *a, struct e_ether_addr *e) { int i; @@ -106,7 +106,7 @@ e_ether_aton(const char *a, struct e_ether_addr *e) * @addr = Address * return: 0 not supported family type or port number */ -inline u_short +u_short e_n2port(sockaddr_t * __restrict addr) { u_short port = 0; @@ -274,7 +274,7 @@ e_addrcmp(sockaddr_t * __restrict a, sockaddr_t * __re * @usec = microseconds for sleep * return: -1 interrupted by signal or 0 ok */ -inline int +int e_usleep(u_int usec) { struct timeval tv = { (time_t) (usec / 1000000), (long) (usec % 1000000) };