From 9f05fe00a024879379f9be085b58be2d816a7eb5 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Thu, 14 Jan 2016 13:00:49 +1100 Subject: [PATCH] Cleanup: use const qualifier in makesdna --- source/blender/makesdna/intern/makesdna.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/source/blender/makesdna/intern/makesdna.c b/source/blender/makesdna/intern/makesdna.c index d1744c6053d..0bdd428bef9 100644 --- a/source/blender/makesdna/intern/makesdna.c +++ b/source/blender/makesdna/intern/makesdna.c @@ -191,7 +191,7 @@ static int preprocess_include(char *maindata, int len); /** * Scan this file for serializable types. */ -static int convert_include(char *filename); +static int convert_include(const char *filename); /** * Determine how many bytes are needed for an array. @@ -515,7 +515,7 @@ static int preprocess_include(char *maindata, int len) return newlen; } -static void *read_file_data(char *filename, int *r_len) +static void *read_file_data(const char *filename, int *r_len) { #ifdef WIN32 FILE *fp = fopen(filename, "rb"); @@ -556,7 +556,7 @@ static void *read_file_data(char *filename, int *r_len) return data; } -static int convert_include(char *filename) +static int convert_include(const char *filename) { /* read include file, skip structs with a '#' before it. * store all data in temporal arrays.