summaryrefslogtreecommitdiffstats
path: root/src/commandline/commands/nvo_cmd.c
diff options
context:
space:
mode:
authorMichael Brown2006-12-08 02:26:11 +0100
committerMichael Brown2006-12-08 02:26:11 +0100
commit7de5d32ff534191232039a275c68ad3552d8ff58 (patch)
tree0d2e07dda34d72384c30da64b960de8abd567aee /src/commandline/commands/nvo_cmd.c
parentAdded execv() and system(). (diff)
downloadipxe-7de5d32ff534191232039a275c68ad3552d8ff58.tar.gz
ipxe-7de5d32ff534191232039a275c68ad3552d8ff58.tar.xz
ipxe-7de5d32ff534191232039a275c68ad3552d8ff58.zip
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.
Diffstat (limited to 'src/commandline/commands/nvo_cmd.c')
-rw-r--r--src/commandline/commands/nvo_cmd.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/commandline/commands/nvo_cmd.c b/src/commandline/commands/nvo_cmd.c
index 662ad7b0..d859b2c0 100644
--- a/src/commandline/commands/nvo_cmd.c
+++ b/src/commandline/commands/nvo_cmd.c
@@ -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,
};