diff options
author | Poul-Henning Kamp <phk@FreeBSD.org> | 2002-10-20 19:08:56 +0000 |
---|---|---|
committer | Poul-Henning Kamp <phk@FreeBSD.org> | 2002-10-20 19:08:56 +0000 |
commit | 930f6f2f6d950bf2dd81c38145827f687edcd808 (patch) | |
tree | 6f65f42f69377c99d016c957cedab4162d972c10 /sbin/gbde/gbde.c | |
parent | 14ac6812b92289b9d22d3101e416dbf7c601de69 (diff) | |
download | src-930f6f2f6d950bf2dd81c38145827f687edcd808.tar.gz src-930f6f2f6d950bf2dd81c38145827f687edcd808.zip |
s/dettach/detach/g etc.
Pointed out by: chris
Notes
Notes:
svn path=/head/; revision=105541
Diffstat (limited to 'sbin/gbde/gbde.c')
-rw-r--r-- | sbin/gbde/gbde.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/sbin/gbde/gbde.c b/sbin/gbde/gbde.c index 2df31c4bc69f..1b8a12a622f1 100644 --- a/sbin/gbde/gbde.c +++ b/sbin/gbde/gbde.c @@ -67,7 +67,7 @@ usage(const char *reason) fprintf(stderr, "Usage error: %s", reason); fprintf(stderr, "Usage:\n"); fprintf(stderr, "\t%s attach dest -l filename\n", p); - fprintf(stderr, "\t%s dettach dest\n", p); + fprintf(stderr, "\t%s detach dest\n", p); fprintf(stderr, "\t%s init dest [-i] [-f filename] -l filename\n", p); fprintf(stderr, "\t%s setkey dest [-n key] -l filename\n", p); fprintf(stderr, "\t%s destroy dest [-n key] -l filename\n", p); @@ -219,7 +219,7 @@ cmd_attach(const struct g_bde_softc *sc, const char *dest, const char *lfile) } static void -cmd_dettach(const char *dest) +cmd_detach(const char *dest) { int i, gfd; struct geomconfiggeom gcg; @@ -601,7 +601,7 @@ cmd_init(struct g_bde_key *gl, int dfd, const char *f_opt, int i_opt, const char static enum action { ACT_HUH, - ACT_ATTACH, ACT_DETTACH, + ACT_ATTACH, ACT_DETACH, ACT_INIT, ACT_SETKEY, ACT_DESTROY, ACT_NUKE } action; @@ -626,8 +626,8 @@ main(int argc, char **argv) if (!strcmp(argv[1], "attach")) { action = ACT_ATTACH; opts = "l:p:"; - } else if (!strcmp(argv[1], "dettach")) { - action = ACT_DETTACH; + } else if (!strcmp(argv[1], "detach")) { + action = ACT_DETACH; opts = ""; } else if (!strcmp(argv[1], "init")) { action = ACT_INIT; @@ -707,8 +707,8 @@ main(int argc, char **argv) setup_passphrase(&sc, 0, p_opt); cmd_attach(&sc, dest, l_opt); break; - case ACT_DETTACH: - cmd_dettach(dest); + case ACT_DETACH: + cmd_detach(dest); break; case ACT_INIT: cmd_init(gl, dfd, f_opt, i_opt, L_opt); |