From 330cb93bc946d61825e227b5cac27234be584abb Mon Sep 17 00:00:00 2001 From: Jeff Layton Date: Sat, 20 Mar 2010 07:49:44 -0400 Subject: cifs-utils: switch to using autoconf package version Rather than using a hardcoded version string, use the VERSION macro that autoconf provides. This will help make it clear what version is actually being used in bug reports when someone runs "mount.cifs -V" or "cifs.upcall --version". Also, clean up AC_INIT and AM_INIT_AUTOMAKE macros. Signed-off-by: Jeff Layton --- cifs.upcall.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'cifs.upcall.c') diff --git a/cifs.upcall.c b/cifs.upcall.c index 6d95477..a81eb24 100644 --- a/cifs.upcall.c +++ b/cifs.upcall.c @@ -53,7 +53,6 @@ create dns_resolver * * /usr/local/sbin/cifs.upcall %k #define MAX_CCNAME_LEN PATH_MAX + 5 -const char *CIFSSPNEGO_VERSION = "1.4"; static const char *prog = "cifs.upcall"; typedef enum _sectype { NONE = 0, @@ -615,7 +614,7 @@ int main(const int argc, char *const argv[]) try_dns++; break; case 'v': - printf("version: %s\n", CIFSSPNEGO_VERSION); + printf("version: %s\n", VERSION); goto out; default: syslog(LOG_ERR, "unknown option: %c", c); -- cgit v1.2.3