cmdlinelib.c now calls system() rather than doing its own tokenisation
(which was extremely heavy on calls to malloc()). Moved include/command.h to include/gpxe/command.h, since it's gPXE-specific.
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
#include "command.h"
|
||||
#include "console.h"
|
||||
#include <vsprintf.h>
|
||||
#include <gpxe/command.h>
|
||||
|
||||
void test2_req(){}
|
||||
|
||||
@@ -15,8 +15,6 @@ static int cmd_test2_exec ( int argc, char **argv ) {
|
||||
|
||||
struct command test2_command __command = {
|
||||
.name = "test2",
|
||||
.usage = "A test command\nIt does nothing at all\n\nExample:\n\ttest2",
|
||||
.desc = "Does nothing",
|
||||
.exec = cmd_test2_exec,
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user