aboutsummaryrefslogtreecommitdiff
path: root/src/main.c
diff options
context:
space:
mode:
authorSergey Poznyakoff <gray@gnu.org.ua>2007-05-11 14:29:37 +0000
committerSergey Poznyakoff <gray@gnu.org.ua>2007-05-11 14:29:37 +0000
commitd81952868fe4ff0c4660e6475c95747f6268eaf8 (patch)
tree84728394cf1f3b368a6e4ced2b8bac9ebfe0fd96 /src/main.c
parent4ff8c9c350cbf95960db65d16d732d160443ce5c (diff)
downloadmailfromd-d81952868fe4ff0c4660e6475c95747f6268eaf8.tar.gz
mailfromd-d81952868fe4ff0c4660e6475c95747f6268eaf8.tar.bz2
Use new version output format. Prepare for 4.0
git-svn-id: file:///svnroot/mailfromd/trunk@1419 7a8a7f39-df28-0410-adc6-e0d955640f24
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c28
1 files changed, 8 insertions, 20 deletions
diff --git a/src/main.c b/src/main.c
index d5a2ff62..86d3038c 100644
--- a/src/main.c
+++ b/src/main.c
@@ -42,2 +42,3 @@
#include "mailfromd.h"
+#include <version-etc.h>
@@ -1301,3 +1302,2 @@ static const char *capa[] = {
"auth",
- "license",
"logging",
@@ -1435,20 +1435,2 @@ switch_to_privs(uid_t uid, gid_t gid)
-static char *license =
- " This is mailfromd filter.\n"
- " Copyright (C) 2005, 2006, 2007 Sergey Poznyakoff\n"
- "\n"
- " ls 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 along\n"
- " with this program; if not, write to the Free Software Foundation,\n"
- " Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n\n";
-
void
@@ -1720,2 +1702,8 @@ stderr_closed_p()
+static void
+version(FILE *stream, struct argp_state *state)
+{
+ mailfromd_version("mailfromd", stream, state);
+}
+
int
@@ -1725,3 +1713,2 @@ main(int argc, char **argv)
- mu_license_text = license;
MU_AUTH_REGISTER_ALL_MODULES();
@@ -1730,2 +1717,3 @@ main(int argc, char **argv)
program_invocation_short_name = argv[0];
+ argp_program_version_hook = version;

Return to:

Send suggestions and report system problems to the System administrator.