diff options
author | Xavier Santolaria <xsa@cvs.openbsd.org> | 2008-02-01 21:10:00 +0000 |
---|---|---|
committer | Xavier Santolaria <xsa@cvs.openbsd.org> | 2008-02-01 21:10:00 +0000 |
commit | 683db723e18e3b586a57b4af33e7d598db6822fb (patch) | |
tree | 54053c78051211216c5c39078f4f88d50b8150e0 /usr.bin/cvs/client.c | |
parent | f0620517e3dee6fc00f55cec28c61d7ecd81d992 (diff) |
Make cvs_requests struct more readable.
Diffstat (limited to 'usr.bin/cvs/client.c')
-rw-r--r-- | usr.bin/cvs/client.c | 73 |
1 files changed, 32 insertions, 41 deletions
diff --git a/usr.bin/cvs/client.c b/usr.bin/cvs/client.c index d2e0242b723..50deddd074d 100644 --- a/usr.bin/cvs/client.c +++ b/usr.bin/cvs/client.c @@ -1,4 +1,4 @@ -/* $OpenBSD: client.c,v 1.94 2008/02/01 17:18:59 tobias Exp $ */ +/* $OpenBSD: client.c,v 1.95 2008/02/01 21:09:59 xsa Exp $ */ /* * Copyright (c) 2006 Joris Vink <joris@openbsd.org> * @@ -74,46 +74,37 @@ struct cvs_req cvs_requests[] = { { "expand-modules", 0, NULL, 0 }, /* commands that might be supported */ - { "ci", 0, cvs_server_commit, - REQ_NEEDDIR }, - { "co", 0, cvs_server_checkout, - REQ_NEEDDIR }, - { "update", 0, cvs_server_update, - REQ_NEEDDIR }, - { "diff", 0, cvs_server_diff, REQ_NEEDDIR }, - { "log", 0, cvs_server_log, REQ_NEEDDIR }, - { "rlog", 0, cvs_server_rlog, 0 }, - { "add", 0, cvs_server_add, REQ_NEEDDIR }, - { "remove", 0, cvs_server_remove, - REQ_NEEDDIR }, - { "update-patches", 0, cvs_server_update_patches, 0 }, - { "gzip-file-contents", 0, NULL, 0 }, - { "status", 0, cvs_server_status, - REQ_NEEDDIR }, - { "rdiff", 0, NULL, 0 }, - { "tag", 0, cvs_server_tag, REQ_NEEDDIR }, - { "rtag", 0, cvs_server_rtag, 0 }, - { "import", 0, cvs_server_import, - REQ_NEEDDIR }, - { "admin", 0, cvs_server_admin, REQ_NEEDDIR }, - { "export", 0, cvs_server_export, - REQ_NEEDDIR }, - { "history", 0, NULL, 0 }, - { "release", 0, cvs_server_release, - REQ_NEEDDIR }, - { "watch-on", 0, NULL, 0 }, - { "watch-off", 0, NULL, 0 }, - { "watch-add", 0, NULL, 0 }, - { "watch-remove", 0, NULL, 0 }, - { "watchers", 0, NULL, 0 }, - { "editors", 0, NULL, 0 }, - { "init", 0, cvs_server_init, 0 }, - { "annotate", 0, cvs_server_annotate, - REQ_NEEDDIR }, - { "rannotate", 0, cvs_server_rannotate, 0 }, - { "noop", 0, NULL, 0 }, - { "version", 0, cvs_server_version, 0 }, - { "", -1, NULL, 0 } + { "ci", 0, cvs_server_commit, REQ_NEEDDIR }, + { "co", 0, cvs_server_checkout, REQ_NEEDDIR }, + { "update", 0, cvs_server_update, REQ_NEEDDIR }, + { "diff", 0, cvs_server_diff, REQ_NEEDDIR }, + { "log", 0, cvs_server_log, REQ_NEEDDIR }, + { "rlog", 0, cvs_server_rlog, 0 }, + { "add", 0, cvs_server_add, REQ_NEEDDIR }, + { "remove", 0, cvs_server_remove, REQ_NEEDDIR }, + { "update-patches", 0, cvs_server_update_patches, 0 }, + { "gzip-file-contents", 0, NULL, 0 }, + { "status", 0, cvs_server_status, REQ_NEEDDIR }, + { "rdiff", 0, NULL, 0 }, + { "tag", 0, cvs_server_tag, REQ_NEEDDIR }, + { "rtag", 0, cvs_server_rtag, 0 }, + { "import", 0, cvs_server_import, REQ_NEEDDIR }, + { "admin", 0, cvs_server_admin, REQ_NEEDDIR }, + { "export", 0, cvs_server_export, REQ_NEEDDIR }, + { "history", 0, NULL, 0 }, + { "release", 0, cvs_server_release, REQ_NEEDDIR }, + { "watch-on", 0, NULL, 0 }, + { "watch-off", 0, NULL, 0 }, + { "watch-add", 0, NULL, 0 }, + { "watch-remove", 0, NULL, 0 }, + { "watchers", 0, NULL, 0 }, + { "editors", 0, NULL, 0 }, + { "init", 0, cvs_server_init, 0 }, + { "annotate", 0, cvs_server_annotate, REQ_NEEDDIR }, + { "rannotate", 0, cvs_server_rannotate, 0 }, + { "noop", 0, NULL, 0 }, + { "version", 0, cvs_server_version, 0 }, + { "", -1, NULL, 0 } }; static void client_check_directory(char *); |