diff options
author | Nicholas Marriott <nicholas.marriott@gmail.com> | 2007-10-04 21:48:11 +0000 |
---|---|---|
committer | Nicholas Marriott <nicholas.marriott@gmail.com> | 2007-10-04 21:48:11 +0000 |
commit | 75e1e4b91e083c82f48de5f426b3cfc6c7c5a7df (patch) | |
tree | 66f7cb600434ebfd34166f3e4ebf4257ee3cb986 /cmd-unbind-key.c | |
parent | 5a3b92c2dfd9fbcf8bda10742cea1fb47927536d (diff) |
Lose usage and move it into the struct.
Diffstat (limited to 'cmd-unbind-key.c')
-rw-r--r-- | cmd-unbind-key.c | 15 |
1 files changed, 5 insertions, 10 deletions
diff --git a/cmd-unbind-key.c b/cmd-unbind-key.c index ee351799..5bb80a1e 100644 --- a/cmd-unbind-key.c +++ b/cmd-unbind-key.c @@ -1,4 +1,4 @@ -/* $Id: cmd-unbind-key.c,v 1.2 2007-10-04 10:11:32 nicm Exp $ */ +/* $Id: cmd-unbind-key.c,v 1.3 2007-10-04 21:48:11 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net> @@ -38,9 +38,9 @@ struct cmd_unbind_key_data { }; const struct cmd_entry cmd_unbind_key_entry = { - CMD_UNBINDKEY, "unbind-key", "unbind", CMD_NOSESSION, + CMD_UNBINDKEY, "unbind-key", "unbind", "key", + CMD_NOSESSION, cmd_unbind_key_parse, - cmd_unbind_key_usage, cmd_unbind_key_exec, cmd_unbind_key_send, cmd_unbind_key_recv, @@ -74,19 +74,14 @@ cmd_unbind_key_parse(void **ptr, int argc, char **argv, char **cause) return (0); usage: - usage(cause, "%s", cmd_unbind_key_usage()); + usage(cause, "%s %s", + cmd_unbind_key_entry.name, cmd_unbind_key_entry.usage); error: xfree(data); return (-1); } -const char * -cmd_unbind_key_usage(void) -{ - return ("unbind-key key"); -} - void cmd_unbind_key_exec(void *ptr, unused struct cmd_ctx *ctx) { |