X-Git-Url: http://ftp.carnet.hr/carnet-debian/scm?a=blobdiff_plain;f=src%2Fshared%2Fhelp.c;h=bcb349e88587fa81daab5dace871925c1df0d804;hb=3f728675941dc69d4e544d3a880a56240a6e394a;hp=6e141b8fadd0ff5c100e2ed3b4d1f92424807dc0;hpb=914feba5d54f979cd5d7e69c349c3d01f630042a;p=ossec-hids.git diff --git a/src/shared/help.c b/src/shared/help.c old mode 100755 new mode 100644 index 6e141b8..bcb349e --- a/src/shared/help.c +++ b/src/shared/help.c @@ -1,51 +1,29 @@ -/* @(#) $Id: help.c,v 1.10 2009/11/18 19:07:42 dcid Exp $ */ - /* Copyright (C) 2009 Trend Micro Inc. * All rights reserved. * * This program is a free software; you can redistribute it * and/or modify it under the terms of the GNU General Public - * License (version 3) as published by the FSF - Free Software + * License (version 2) as published by the FSF - Free Software * Foundation */ -/* Part of the OSSEC HIDS - * Available at http://www.ossec.net/hids/ - */ - -/* Help Function - */ - +/* Help Function */ #include "shared.h" -void help(const char *prog) + +void print_header() { print_out(" "); - print_out("%s %s - %s (%s)", __name, __version, __author, __contact); + print_out("%s %s - %s (%s)", __ossec_name, __version, __author, __contact); print_out("%s", __site); - print_out(" "); - print_out(" %s: -[Vhdt] [-u user] [-g group] [-c config] [-D dir]", prog); - print_out(" -V Version and license message"); - print_out(" -h This help message"); - print_out(" -d Execute in debug mode"); - print_out(" -t Test configuration"); - print_out(" -f Run in foreground"); - print_out(" -u Run as 'user'"); - print_out(" -g Run as 'group'"); - print_out(" -c Read the 'config' file"); - print_out(" -D Chroot to 'dir'"); - print_out(" "); - exit(1); } void print_version() { print_out(" "); - print_out("%s %s - %s", __name, __version, __author); + print_out("%s %s - %s", __ossec_name, __version, __author); print_out(" "); - print_out("%s",__license); + print_out("%s", __license); exit(1); } - -/* EOF */