summaryrefslogtreecommitdiff
path: root/usr.bin
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2001-02-04 23:47:47 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2001-02-04 23:47:47 +0000
commit81db9c1ddcc63608194422b9860fd8b163ebd397 (patch)
tree46ef253f29b677477de4381d822a68b18185864f /usr.bin
parentf9cbdb9596725b53897f2d7cca300362088f57f3 (diff)
sort commands, so that abbreviations work as expected
Diffstat (limited to 'usr.bin')
-rw-r--r--usr.bin/ssh/sftp-int.c52
1 files changed, 26 insertions, 26 deletions
diff --git a/usr.bin/ssh/sftp-int.c b/usr.bin/ssh/sftp-int.c
index 19467f7860a..9d5bcc8c71b 100644
--- a/usr.bin/ssh/sftp-int.c
+++ b/usr.bin/ssh/sftp-int.c
@@ -27,7 +27,7 @@
/* XXX: recursive operations */
#include "includes.h"
-RCSID("$OpenBSD: sftp-int.c,v 1.5 2001/02/04 22:17:52 stevesk Exp $");
+RCSID("$OpenBSD: sftp-int.c,v 1.6 2001/02/04 23:47:46 deraadt Exp $");
#include "buffer.h"
#include "xmalloc.h"
@@ -65,35 +65,35 @@ RCSID("$OpenBSD: sftp-int.c,v 1.5 2001/02/04 22:17:52 stevesk Exp $");
#define I_SHELL 20
struct CMD {
- const int n;
const char *c;
+ const int n;
};
const struct CMD cmds[] = {
- { I_CHDIR, "CD" },
- { I_CHDIR, "CHDIR" },
- { I_CHGRP, "CHGRP" },
- { I_CHMOD, "CHMOD" },
- { I_CHOWN, "CHOWN" },
- { I_HELP, "HELP" },
- { I_GET, "GET" },
- { I_LCHDIR, "LCD" },
- { I_LCHDIR, "LCHDIR" },
- { I_LLS, "LLS" },
- { I_LMKDIR, "LMKDIR" },
- { I_LPWD, "LPWD" },
- { I_LS, "LS" },
- { I_LUMASK, "LUMASK" },
- { I_MKDIR, "MKDIR" },
- { I_PUT, "PUT" },
- { I_PWD, "PWD" },
- { I_QUIT, "EXIT" },
- { I_QUIT, "QUIT" },
- { I_RENAME, "RENAME" },
- { I_RMDIR, "RMDIR" },
- { I_RM, "RM" },
- { I_SHELL, "!" },
- { -1, NULL}
+ { "CD", I_CHDIR },
+ { "CHDIR", I_CHDIR },
+ { "CHGRP", I_CHGRP },
+ { "CHMOD", I_CHMOD },
+ { "CHOWN", I_CHOWN },
+ { "EXIT", I_QUIT },
+ { "GET", I_GET },
+ { "HELP", I_HELP },
+ { "LCD", I_LCHDIR },
+ { "LCHDIR", I_LCHDIR },
+ { "LLS", I_LLS },
+ { "LMKDIR", I_LMKDIR },
+ { "LPWD", I_LPWD },
+ { "LS", I_LS },
+ { "LUMASK", I_LUMASK },
+ { "MKDIR", I_MKDIR },
+ { "PUT", I_PUT },
+ { "PWD", I_PWD },
+ { "QUIT", I_QUIT },
+ { "RENAME", I_RENAME },
+ { "RM", I_RM },
+ { "RMDIR", I_RMDIR },
+ { "!", I_SHELL },
+ { NULL, -1}
};
void