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:
Michael Brown
2006-12-08 01:26:11 +00:00
parent f3d817d512
commit 7de5d32ff5
6 changed files with 17 additions and 222 deletions

View File

@@ -3,10 +3,11 @@
#include <string.h>
#include <errno.h>
#include <vsprintf.h>
#include <command.h>
#include <getopt.h>
#include <gpxe/nvo.h>
#include <gpxe/dhcp.h>
#include <gpxe/settings.h>
#include <gpxe/command.h>
void nvo_cmd_req() {}
@@ -41,8 +42,6 @@ static int show_exec ( int argc, char **argv ) {
struct command show_command __command = {
.name = "show",
.usage = "show <identifier>\n",
.desc = "Show stored options",
.exec = show_exec,
};
@@ -78,7 +77,5 @@ static int set_exec ( int argc, char **argv ) {
struct command set_command __command = {
.name = "set",
.usage = "set <identifier> <value>\n",
.desc = "Set stored option",
.exec = set_exec,
};