From 75e1e4b91e083c82f48de5f426b3cfc6c7c5a7df Mon Sep 17 00:00:00 2001 From: Nicholas Marriott Date: Thu, 4 Oct 2007 21:48:11 +0000 Subject: Lose usage and move it into the struct. --- cmd-set-option.c | 15 +++++---------- 1 file changed, 5 insertions(+), 10 deletions(-) (limited to 'cmd-set-option.c') diff --git a/cmd-set-option.c b/cmd-set-option.c index c2d836ee..586ae230 100644 --- a/cmd-set-option.c +++ b/cmd-set-option.c @@ -1,4 +1,4 @@ -/* $Id: cmd-set-option.c,v 1.1 2007-10-04 10:11:32 nicm Exp $ */ +/* $Id: cmd-set-option.c,v 1.2 2007-10-04 21:48:11 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott @@ -41,9 +41,9 @@ struct cmd_set_option_data { }; const struct cmd_entry cmd_set_option_entry = { - CMD_SETOPTION, "set-option", "set", CMD_NOSESSION, + CMD_SETOPTION, "set-option", "set", "option value", + CMD_NOSESSION, cmd_set_option_parse, - cmd_set_option_usage, cmd_set_option_exec, cmd_set_option_send, cmd_set_option_recv, @@ -78,18 +78,13 @@ cmd_set_option_parse(void **ptr, int argc, char **argv, char **cause) return (0); usage: - usage(cause, "%s", cmd_set_option_usage()); + usage(cause, "%s %s", + cmd_set_option_entry.name, cmd_set_option_entry.usage); cmd_set_option_free(data); return (-1); } -const char * -cmd_set_option_usage(void) -{ - return ("set-option option value"); -} - void cmd_set_option_exec(void *ptr, unused struct cmd_ctx *ctx) { -- cgit