Merge pull request #1192 from bkozak-scanimetrics/tcpip_put_temporaries_on_stack
changed tcpip static temporaries to stack vars
This commit is contained in:
commit
c9baf0cb57
|
@ -237,7 +237,7 @@ tcp_connect(const uip_ipaddr_t *ripaddr, uint16_t port, void *appstate)
|
||||||
void
|
void
|
||||||
tcp_unlisten(uint16_t port)
|
tcp_unlisten(uint16_t port)
|
||||||
{
|
{
|
||||||
static unsigned char i;
|
unsigned char i;
|
||||||
struct listenport *l;
|
struct listenport *l;
|
||||||
|
|
||||||
l = s.listenports;
|
l = s.listenports;
|
||||||
|
@ -255,7 +255,7 @@ tcp_unlisten(uint16_t port)
|
||||||
void
|
void
|
||||||
tcp_listen(uint16_t port)
|
tcp_listen(uint16_t port)
|
||||||
{
|
{
|
||||||
static unsigned char i;
|
unsigned char i;
|
||||||
struct listenport *l;
|
struct listenport *l;
|
||||||
|
|
||||||
l = s.listenports;
|
l = s.listenports;
|
||||||
|
@ -359,7 +359,7 @@ static void
|
||||||
eventhandler(process_event_t ev, process_data_t data)
|
eventhandler(process_event_t ev, process_data_t data)
|
||||||
{
|
{
|
||||||
#if UIP_TCP
|
#if UIP_TCP
|
||||||
static unsigned char i;
|
unsigned char i;
|
||||||
register struct listenport *l;
|
register struct listenport *l;
|
||||||
#endif /*UIP_TCP*/
|
#endif /*UIP_TCP*/
|
||||||
struct process *p;
|
struct process *p;
|
||||||
|
@ -760,9 +760,9 @@ tcpip_uipcall(void)
|
||||||
|
|
||||||
#if UIP_TCP
|
#if UIP_TCP
|
||||||
{
|
{
|
||||||
static unsigned char i;
|
unsigned char i;
|
||||||
struct listenport *l;
|
struct listenport *l;
|
||||||
|
|
||||||
/* If this is a connection request for a listening port, we must
|
/* If this is a connection request for a listening port, we must
|
||||||
mark the connection with the right process ID. */
|
mark the connection with the right process ID. */
|
||||||
if(uip_connected()) {
|
if(uip_connected()) {
|
||||||
|
@ -791,11 +791,11 @@ tcpip_uipcall(void)
|
||||||
PROCESS_THREAD(tcpip_process, ev, data)
|
PROCESS_THREAD(tcpip_process, ev, data)
|
||||||
{
|
{
|
||||||
PROCESS_BEGIN();
|
PROCESS_BEGIN();
|
||||||
|
|
||||||
#if UIP_TCP
|
#if UIP_TCP
|
||||||
{
|
{
|
||||||
static unsigned char i;
|
unsigned char i;
|
||||||
|
|
||||||
for(i = 0; i < UIP_LISTENPORTS; ++i) {
|
for(i = 0; i < UIP_LISTENPORTS; ++i) {
|
||||||
s.listenports[i].port = 0;
|
s.listenports[i].port = 0;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue