[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[lwip-devel] [bug #20254] Initializing static/global variables
From: |
Petr Cernin |
Subject: |
[lwip-devel] [bug #20254] Initializing static/global variables |
Date: |
Mon, 25 Jun 2007 15:55:58 +0000 |
User-agent: |
Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322; .NET CLR 2.0.50727) |
URL:
<http://savannah.nongnu.org/bugs/?20254>
Summary: Initializing static/global variables
Project: lwIP - A Lightweight TCP/IP stack
Submitted by: cerninp
Submitted on: Monday 06/25/07 at 15:55
Category: sockets
Severity: 3 - Normal
Item Group: Faulty Behaviour
Status: None
Privacy: Public
Assigned to: None
Open/Closed: Open
Discussion Lock: Any
_______________________________________________________
Details:
Hello guys,
i'd like to ask if it would be possible to initialize all static/global
variables inside xxx_init() functions instead of bank on linked start-up
code.
For example one critical i found in sockets.c:
void
lwip_socket_init(void)
{
socksem = sys_sem_new(1);
selectsem = sys_sem_new(1);
----> memset( sockets, 0, sizeof( sockets ) ); <----- please add this line
}
(The compiler i use (TI Code Composer) doesn't initialize some static and
global variables correctly. Without this hack sockets[] array is not
initialized to zeroes and so i'm not able open any socket )
Thank you very much,
Petr
_______________________________________________________
Reply to this item at:
<http://savannah.nongnu.org/bugs/?20254>
_______________________________________________
Message sent via/by Savannah
http://savannah.nongnu.org/
- [lwip-devel] [bug #20254] Initializing static/global variables,
Petr Cernin <=
- [lwip-devel] [bug #20254] Initializing static/global variables, Kieran Mansley, 2007/06/25
- [lwip-devel] [bug #20254] Initializing static/global variables, Thomas Taranowski, 2007/06/25
- [lwip-devel] [bug #20254] Initializing static/global variables, Simon Goldschmidt, 2007/06/25
- [lwip-devel] [bug #20254] Initializing static/global variables, Thomas Taranowski, 2007/06/25
- [lwip-devel] [bug #20254] Initializing static/global variables, Petr Cernin, 2007/06/26
- [lwip-devel] [bug #20254] Initializing static/global variables, Simon Goldschmidt, 2007/06/26
- RE: [lwip-devel] [bug #20254] Initializing static/global variables, Julian Gardner [RSD], 2007/06/26
- [lwip-devel] [bug #20254] Initializing static/global variables, Simon Goldschmidt, 2007/06/26
- RE: [lwip-devel] [bug #20254] Initializing static/global variables, Julian Gardner [RSD], 2007/06/26
- RE: [lwip-devel] [bug #20254] Initializing static/global variables, Goldschmidt Simon, 2007/06/26