From 601016a5bed80fd1213138fad7c2c2a5265fba82 Mon Sep 17 00:00:00 2001 From: Russell King Date: Thu, 18 Oct 2012 12:41:47 +0100 Subject: Constify argument to get_version() --- vmeta_lib.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/vmeta_lib.c b/vmeta_lib.c index 324ef71..f1f5a98 100644 --- a/vmeta_lib.c +++ b/vmeta_lib.c @@ -334,12 +334,12 @@ SIGN32 vdec_os_api_sync_event() //End of mem mmap #define VMETA_VERSION_PREFIX "build-" -static int get_version(char *msg) +static int get_version(const char *filename) { int ret; int version; - FILE *file = fopen(msg, "r"); + FILE *file = fopen(filename, "r"); if(!file) { dbg_printf(VDEC_DEBUG_ALL, "Error: %s -> fopen failed\n", __FUNCTION__); -- cgit