lwip-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[lwip-devel] [task #7054] Clarification needed for variable initializati


From: Frédéric Bernon
Subject: [lwip-devel] [task #7054] Clarification needed for variable initialization
Date: Wed, 04 Jul 2007 09:38:03 +0000
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; fr; rv:1.8.1.4) Gecko/20070515 Firefox/2.0.0.4

Follow-up Comment #5, task #7054 (project lwip):

Some problem with some init. In sockets.c file, you could see :

static sys_sem_t socksem = 0;
static sys_sem_t selectsem = 0;

But it's not good, since 0 is not the same as SYS_SEM_NULL: this define is
provide in each sys_arch.h to determine which is the invalid value for a
semaphore (see sys_arch.txt). In my case, I got...

#define SYS_SEM_NULL 0xffffffff

Since my semaphore subsystem handler is based on a array (where 0 is a valid
value).

Hopefully, they are - in CVS HEAD - initialized in lwip_socket_init()...


    _______________________________________________________

Reply to this item at:

  <http://savannah.nongnu.org/task/?7054>

_______________________________________________
  Message posté via/par Savannah
  http://savannah.nongnu.org/





reply via email to

[Prev in Thread] Current Thread [Next in Thread]