Browse Source

[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>
tags/v1.20.1
Michael Brown 11 years ago
parent
commit
d91ccde9e5
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      src/include/ipxe/process.h

+ 1
- 1
src/include/ipxe/process.h View File

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

Loading…
Cancel
Save