Skip to content
Snippets Groups Projects
Commit c2dc2bae authored by Jan Hák's avatar Jan Hák Committed by Daniel Salzman
Browse files

knsupdate: adds the 'exit' command as a synonym to the existing 'quit'

parent 6ab3dc43
1 merge request!1428Knsupdate with libedit
This commit is part of merge request !1428. Comments created here will be created in the context of that merge request.
......@@ -149,8 +149,8 @@ Displays the last answer from the server.
\fBdebug\fP
Enable debugging. This command has the same meaning as the \fB\-d\fP program option.
.TP
\fBquit\fP
Quit the program.
\fBexit\fP
End the program.
.UNINDENT
.SH NOTES
.sp
......@@ -185,7 +185,7 @@ $ knsupdate
> show
> send
> answer
> quit
> exit
.ft P
.fi
.UNINDENT
......
......@@ -126,8 +126,8 @@ Commands
**debug**
Enable debugging. This command has the same meaning as the **-d** program option.
**quit**
Quit the program.
**exit**
End the program.
Notes
-----
......@@ -162,7 +162,7 @@ Examples
> show
> send
> answer
> quit
> exit
See Also
--------
......
......@@ -52,7 +52,7 @@ int cmd_nxrrset(const char *lp, knsupdate_params_t *params);
int cmd_oldgsstsig(const char* lp, knsupdate_params_t *params);
int cmd_origin(const char* lp, knsupdate_params_t *params);
int cmd_prereq(const char* lp, knsupdate_params_t *params);
int cmd_quit(const char* lp, knsupdate_params_t *params);
int cmd_exit(const char* lp, knsupdate_params_t *params);
int cmd_realm(const char* lp, knsupdate_params_t *params);
int cmd_send(const char* lp, knsupdate_params_t *params);
int cmd_server(const char* lp, knsupdate_params_t *params);
......@@ -74,6 +74,7 @@ const char* knsupdate_cmd_array[] = {
"\x5" "debug",
"\x3" "del",
"\x6" "delete",
"\x4" "exit",
"\x7" "gsstsig",
"\x3" "key", /* {[alg:]name} {secret} */
"\x5" "local", /* {address} [port] */
......@@ -102,6 +103,7 @@ cmd_handle_f cmd_handle[] = {
cmd_debug,
cmd_del,
cmd_del, /* delete/del synonyms */
cmd_exit,
cmd_gsstsig,
cmd_key,
cmd_local,
......@@ -110,7 +112,7 @@ cmd_handle_f cmd_handle[] = {
cmd_oldgsstsig,
cmd_origin,
cmd_prereq,
cmd_quit,
cmd_exit, /* exit/quit synonyms */
cmd_realm,
cmd_send,
cmd_server,
......@@ -789,7 +791,7 @@ int cmd_prereq(const char* lp, knsupdate_params_t *params)
return ret;
}
int cmd_quit(const char* lp, knsupdate_params_t *params)
int cmd_exit(const char* lp, knsupdate_params_t *params)
{
DBG("%s: lp='%s'\n", __func__, lp);
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment