mirror of
https://github.com/ipxe/ipxe
synced 2025-12-13 07:20:47 +03:00
[process] Pass containing object pointer to process step() methods
Give the step() method a pointer to the containing object, rather than a pointer to the process. This is consistent with the operation of interface methods, and allows a single function to serve as both an interface method and a process step() method. Signed-off-by: Michael Brown <mcb30@ipxe.org>
This commit is contained in:
@@ -769,7 +769,4 @@ static void net_step ( struct process *process __unused ) {
|
||||
}
|
||||
|
||||
/** Networking stack process */
|
||||
struct process net_process __permanent_process = {
|
||||
.list = LIST_HEAD_INIT ( net_process.list ),
|
||||
.step = net_step,
|
||||
};
|
||||
PERMANENT_PROCESS ( net_process, net_step );
|
||||
|
||||
Reference in New Issue
Block a user