X-Git-Url: http://git.pk910.de/?a=blobdiff_plain;f=src%2Fmain.c;h=1cf2da723f74bebade1069b93e83190c937f99d0;hb=022bd2b4a123c7860a7c9529e253c569c1613933;hp=fc890c529cccb4a256ba57c9c2ca3ebcd063eed2;hpb=a662d25f0b923b0f8cc5edc87bd857e3c22ccbc2;p=srvx.git diff --git a/src/main.c b/src/main.c index fc890c5..1cf2da7 100644 --- a/src/main.c +++ b/src/main.c @@ -95,43 +95,6 @@ void sigaction_rehash(int x) do_reopen = 1; } -void usage(char *self) { - /* We can assume we have getopt_long(). */ - printf("Usage: %s [-c config] [-r log] [-d] [-f] [-v|-h]\n" - "-c, --config selects a different configuration file.\n" - "-d, --debug enables debug mode.\n" - "-f, --foreground run srvx in the foreground.\n" - "-h, --help prints this usage message.\n" - "-k, --check checks the configuration file's syntax.\n" - "-r, --replay replay a log file (for debugging)\n" - "-v, --version prints this program's version.\n" - , self); -} - -void version() { - printf(" --------------------------------------------------\n" - " - "PACKAGE_STRING" ("CODENAME"), Built: " __DATE__ ", " __TIME__".\n" - " - Copyright (C) 2000 - 2005, srvx Development Team\n" - " --------------------------------------------------\n"); -} - -void license() { - printf("\n" - "This program is free software; you can redistribute it and/or modify\n" - "it under the terms of the GNU General Public License as published by\n" - "the Free Software Foundation; either version 2 of the License, or\n" - "(at your option) any later version.\n" - "\n" - "This program is distributed in the hope that it will be useful,\n" - "but WITHOUT ANY WARRANTY; without even the implied warranty of\n" - "MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n" - "GNU General Public License for more details.\n" - "\n" - "You should have received a copy of the GNU General Public License\n" - "along with this program; if not, write to the Free Software\n" - "Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.\n\n"); -} - #if WITH_MALLOC_BOEHM_GC void gc_warn_proc(char *msg, GC_word arg) @@ -182,12 +145,11 @@ int main(int argc, char *argv[]) {"check", 0, 0, 'k'}, {"replay", 1, 0, 'r'}, {"version", 0, 0, 'v'}, - {"verbose", 0, 0, 'V'}, {0, 0, 0, 0} }; - while ((c = getopt_long(argc, argv, "c:kr:dfvVh", options, NULL)) != -1) { - switch(c) { + while ((c = getopt_long(argc, argv, "c:dfhkr:v", options, NULL)) != -1) { + switch (c) { case 'c': services_config = optarg; break;