This commit is contained in:
Carl-Benedikt Krüger 2011-06-28 15:06:23 +02:00
parent beb3eb322f
commit 25bc264d18
2 changed files with 3 additions and 3 deletions

View file

@ -849,11 +849,11 @@ err_t mmnif_init(struct netif* netif)
DEBUGPRINTF("mmnif init(): allocating shared memory failed\n");
return ERR_MEM;
}
memset(mmnif->rx_buff, 0, sizeof(mm_rx_buffer_t) + MMNIF_RX_QUEUELEN* MMNIF_RX_BUFFERLEN);
memset(mmnif->rx_buff, 0, mpb_size);
/* init the lock for the hdr
*/
sem_init(&mmnif->rx_buff->lock,1);
// sem_init(&mmnif->rx_buff->lock,1);
/* inform via interrupt should be the dafault
*/

View file

@ -221,7 +221,7 @@ void* client_task(void* e)
struct sockaddr_in pin;
struct hostent *hp;
sleep(2);
sleep(1);
/* fill in the socket structure with host information */
memset(&pin, 0, sizeof(pin));