summaryrefslogtreecommitdiff
path: root/mount.cifs.c
diff options
context:
space:
mode:
authorJeff Layton <jlayton@redhat.com>2010-03-20 07:49:44 -0400
committerJeff Layton <jlayton@redhat.com>2010-03-20 07:49:44 -0400
commit330cb93bc946d61825e227b5cac27234be584abb (patch)
tree214d55c34cebd4af67894e0c0fa595c0bf47e244 /mount.cifs.c
parent4d8902296bbb8d877bdfe70847a9a29b6cb21186 (diff)
downloadcifs-utils-330cb93bc946d61825e227b5cac27234be584abb.tar.gz
cifs-utils-330cb93bc946d61825e227b5cac27234be584abb.tar.bz2
cifs-utils-330cb93bc946d61825e227b5cac27234be584abb.zip
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 <jlayton@redhat.com>
Diffstat (limited to 'mount.cifs.c')
-rw-r--r--mount.cifs.c10
1 files changed, 2 insertions, 8 deletions
diff --git a/mount.cifs.c b/mount.cifs.c
index 4e38415..d5f97db 100644
--- a/mount.cifs.c
+++ b/mount.cifs.c
@@ -43,9 +43,6 @@
#include "mount.h"
#include "util.h"
-#define MOUNT_CIFS_VERSION_MAJOR "1"
-#define MOUNT_CIFS_VERSION_MINOR "14"
-
#ifndef MOUNT_CIFS_VENDOR_SUFFIX
#ifdef _SAMBA_BUILD_
#include "version.h"
@@ -1149,10 +1146,7 @@ uppercase_string(char *string)
static void print_cifs_mount_version(void)
{
- printf("mount.cifs version: %s.%s%s\n",
- MOUNT_CIFS_VERSION_MAJOR,
- MOUNT_CIFS_VERSION_MINOR,
- MOUNT_CIFS_VENDOR_SUFFIX);
+ printf("mount.cifs version: %s\n", VERSION);
}
/*
@@ -1561,7 +1555,7 @@ mount_retry:
}
strlcat(options,",ver=",options_size);
- strlcat(options,MOUNT_CIFS_VERSION_MAJOR,options_size);
+ strlcat(options,VERSION,options_size);
if(orgoptions) {
strlcat(options,",",options_size);