summaryrefslogtreecommitdiff
path: root/btrfs.c
diff options
context:
space:
mode:
authorKarel Zak <kzak@redhat.com>2014-12-09 15:37:03 +0100
committerDavid Sterba <dsterba@suse.cz>2015-01-28 18:00:58 +0100
commit33f2d6b84da88139b2b7ff53e470cb198d425381 (patch)
treec05a3cb96b2c48a95818882224d07c63501deeb3 /btrfs.c
parentbb6b4fea9f78939262446e35d2e0d4d0ed0d8e57 (diff)
downloadbtrfs-progs-33f2d6b84da88139b2b7ff53e470cb198d425381.tar.gz
btrfs-progs: autoconf: use standard PACKAGE_* macros
- use standard PACKAGE_{NAME,VERSION,STRING,URL,...} autoconf macros rather than homemade BTRFS_BUILD_VERSION - don't #include version.h, now the file is necessary for library API only Note that "btrfs version" returns "btrfs-progs <version>" instead of the original confusing "btrfs <version>". Signed-off-by: Karel Zak <kzak@redhat.com> Signed-off-by: David Sterba <dsterba@suse.cz>
Diffstat (limited to 'btrfs.c')
-rw-r--r--btrfs.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/btrfs.c b/btrfs.c
index 2451885..f0fa848 100644
--- a/btrfs.c
+++ b/btrfs.c
@@ -20,7 +20,6 @@
#include "crc32c.h"
#include "commands.h"
-#include "version.h"
#include "utils.h"
static const char * const btrfs_cmd_group_usage[] = {
@@ -168,7 +167,7 @@ static const char * const cmd_version_usage[] = {
static int cmd_version(int argc, char **argv)
{
- printf("%s\n", BTRFS_BUILD_VERSION);
+ printf("%s\n", PACKAGE_STRING);
return 0;
}