From 723e3ec8d9acbbb2ad12c8b458e8c43e55a9ec2d Mon Sep 17 00:00:00 2001 From: wm4 Date: Tue, 6 Sep 2016 17:58:00 +0200 Subject: common: use char array for version string Use a char array instead of a pointer, which allows using the version variables in a constant context. --- common/version.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'common/version.c') diff --git a/common/version.c b/common/version.c index b1d42b9ab4..b98fe00ed1 100644 --- a/common/version.c +++ b/common/version.c @@ -22,5 +22,5 @@ #define BUILDDATE "UNKNOWN" #endif -const char *const mpv_version = "mpv " VERSION; -const char *const mpv_builddate = BUILDDATE; +const char mpv_version[] = "mpv " VERSION; +const char mpv_builddate[] = BUILDDATE; -- cgit v1.2.3