From 010d26a85bfe15c4aa12eefeab851dbde0609c26 Mon Sep 17 00:00:00 2001 From: Werner Koch Date: Wed, 17 Jun 2015 12:59:29 +0200 Subject: agent: Print a warning for obsolete options. * g10/misc.c (obsolete_scdaemon_option): Move to * common/miscellaneous.c (obsolete_option): ... here. * agent/gpg-agent.c (main): Use obsolete_option for the 3 obsolete options. -- GnuPG-bug-id: 2016 Signed-off-by: Werner Koch --- g10/misc.c | 13 ------------- 1 file changed, 13 deletions(-) (limited to 'g10/misc.c') diff --git a/g10/misc.c b/g10/misc.c index 654908d37..9134b2823 100644 --- a/g10/misc.c +++ b/g10/misc.c @@ -1012,19 +1012,6 @@ deprecated_command (const char *name) } -void -obsolete_option (const char *configname, unsigned int configlineno, - const char *name) -{ - if(configname) - log_info (_("%s:%u: obsolete option \"%s\" - it has no effect\n"), - configname, configlineno, name); - else - log_info (_("WARNING: \"%s%s\" is an obsolete option - it has no effect\n"), - "--", name); -} - - void obsolete_scdaemon_option (const char *configname, unsigned int configlineno, const char *name) -- cgit v1.2.3