summaryrefslogtreecommitdiffabout
path: root/jabberd/main.c
authorSergey Poznyakoff <gray@gnu.org.ua>2007-08-24 20:38:54 (GMT)
committer Sergey Poznyakoff <gray@gnu.org.ua>2007-08-24 20:38:54 (GMT)
commit747837446d4ced410bcdbe71deda6b216e02c647 (patch) (side-by-side diff)
tree1d9d03461ae65b473d3c75dc14eaf046ded4bb24 /jabberd/main.c
parent2830c5a761d81bd77fa5ffcbf4c80fc7a5eecca3 (diff)
downloadgsc-747837446d4ced410bcdbe71deda6b216e02c647.tar.gz
gsc-747837446d4ced410bcdbe71deda6b216e02c647.tar.bz2
* lib/version.c: New file
* lib/gsc.h (gsc_version): New function * cvs/Makefile.am, ckaliases/Makefile.am, wydawca/Makefile.am, lib/Makefile.am, jabberd/Makefile.am: Fix include dirs * ckaliases/ckaliases.c, ckaliases/lex.l, ckaliases/ckaliases.h, ckaliases/gram.y: Use long options. Implement --version * wydawca/wydawca.c, jabberd/main.c: Use gsc_version to display program version. * doc/gsc.texi: Update * bootstrap: Add vasprintf git-svn-id: file:///svnroot/gsc/trunk@289 d2de0444-eb31-0410-8365-af798a554d48
Diffstat (limited to 'jabberd/main.c') (more/less context) (ignore whitespace changes)
-rw-r--r--jabberd/main.c12
1 files changed, 1 insertions, 11 deletions
diff --git a/jabberd/main.c b/jabberd/main.c
index 43f33ee..cc229fb 100644
--- a/jabberd/main.c
+++ b/jabberd/main.c
@@ -83,16 +83,6 @@ emalloc (size_t size)
}
void
-version ()
-{
- printf ("jabberd (%s)\n", PACKAGE_STRING);
- printf ("Copyright (C) 2007 Sergey Poznyakoff\n");
- printf ("License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>\n");
- printf ("This is free software: you are free to change and redistribute it.\n");
- printf ("There is NO WARRANTY, to the extent permitted by law.\n");
-}
-
-void
usage ()
{
printf ("usage: jabberd [-Dfehv][-c config][-r tag [tag...]]\n");
@@ -780,7 +770,7 @@ main(int argc, char **argv)
exit (0);
case 'v':
- version ();
+ gsc_version ("jabberd");
exit (0);
case 'r':

Return to:

Send suggestions and report system problems to the System administrator.