david/ipxe
david
/
ipxe
Archived
1
0
Fork 0

[process] Mark process descriptor as static in PERMANENT_PROCESS

There is no need for the process descriptor to be a global variable.

Signed-off-by: Michael Brown <mcb30@ipxe.org>
This commit is contained in:
Michael Brown 2013-04-25 15:15:43 +01:00
parent eaa0f47dc2
commit d91ccde9e5
1 changed files with 1 additions and 1 deletions

View File

@ -174,7 +174,7 @@ process_running ( struct process *process ) {
*
*/
#define PERMANENT_PROCESS( name, step ) \
struct process_descriptor name ## _desc = PROC_DESC_PURE ( step ); \
static struct process_descriptor name ## _desc = PROC_DESC_PURE ( step ); \
struct process name __permanent_process = { \
.list = LIST_HEAD_INIT ( name.list ), \
.desc = & name ## _desc, \