mirror of
https://github.com/lwip-tcpip/lwip.git
synced 2024-11-19 05:10:40 +00:00
bug #25763: Corrected 4 occurrences of SMEMCPY to MEMCPY; corrected indentation
This commit is contained in:
parent
3587e8481d
commit
b3a5d6df0d
@ -19,6 +19,9 @@ HISTORY
|
|||||||
|
|
||||||
++ New features:
|
++ New features:
|
||||||
|
|
||||||
|
2009-04-15 Simon Goldschmidt
|
||||||
|
* sockets.c, ppp.c: bug #25763: corrected 4 occurrences of SMEMCPY to MEMCPY
|
||||||
|
|
||||||
2009-04-15 Simon Goldschmidt
|
2009-04-15 Simon Goldschmidt
|
||||||
* sockets.c: bug #26121: set_errno can be overridden
|
* sockets.c: bug #26121: set_errno can be overridden
|
||||||
|
|
||||||
|
@ -295,7 +295,7 @@ lwip_accept(int s, struct sockaddr *addr, socklen_t *addrlen)
|
|||||||
if (*addrlen > sizeof(sin))
|
if (*addrlen > sizeof(sin))
|
||||||
*addrlen = sizeof(sin);
|
*addrlen = sizeof(sin);
|
||||||
|
|
||||||
SMEMCPY(addr, &sin, *addrlen);
|
MEMCPY(addr, &sin, *addrlen);
|
||||||
}
|
}
|
||||||
|
|
||||||
newsock = alloc_socket(newconn);
|
newsock = alloc_socket(newconn);
|
||||||
@ -565,7 +565,7 @@ lwip_recvfrom(int s, void *mem, size_t len, int flags,
|
|||||||
*fromlen = sizeof(sin);
|
*fromlen = sizeof(sin);
|
||||||
}
|
}
|
||||||
|
|
||||||
SMEMCPY(from, &sin, *fromlen);
|
MEMCPY(from, &sin, *fromlen);
|
||||||
|
|
||||||
LWIP_DEBUGF(SOCKETS_DEBUG, ("lwip_recvfrom(%d): addr=", s));
|
LWIP_DEBUGF(SOCKETS_DEBUG, ("lwip_recvfrom(%d): addr=", s));
|
||||||
ip_addr_debug_print(SOCKETS_DEBUG, addr);
|
ip_addr_debug_print(SOCKETS_DEBUG, addr);
|
||||||
@ -1140,7 +1140,7 @@ lwip_getaddrname(int s, struct sockaddr *name, socklen_t *namelen, u8_t local)
|
|||||||
if (*namelen > sizeof(sin))
|
if (*namelen > sizeof(sin))
|
||||||
*namelen = sizeof(sin);
|
*namelen = sizeof(sin);
|
||||||
|
|
||||||
SMEMCPY(name, &sin, *namelen);
|
MEMCPY(name, &sin, *namelen);
|
||||||
sock_set_errno(sock, 0);
|
sock_set_errno(sock, 0);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
@ -1056,7 +1056,7 @@ pppWriteOverEthernet(int pd, const u_char *s, int n)
|
|||||||
|
|
||||||
pc->lastXMit = sys_jiffies();
|
pc->lastXMit = sys_jiffies();
|
||||||
|
|
||||||
SMEMCPY(pb->payload, s, n);
|
MEMCPY(pb->payload, s, n);
|
||||||
|
|
||||||
if(pppoe_xmit(pc->pppoe_sc, pb) != ERR_OK) {
|
if(pppoe_xmit(pc->pppoe_sc, pb) != ERR_OK) {
|
||||||
LINK_STATS_INC(link.err);
|
LINK_STATS_INC(link.err);
|
||||||
|
Loading…
Reference in New Issue
Block a user