diff options
Diffstat (limited to 'source/blender/makesrna/intern/makesrna.c')
-rw-r--r-- | source/blender/makesrna/intern/makesrna.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/source/blender/makesrna/intern/makesrna.c b/source/blender/makesrna/intern/makesrna.c index b7f0fb87536..779e4363be0 100644 --- a/source/blender/makesrna/intern/makesrna.c +++ b/source/blender/makesrna/intern/makesrna.c @@ -175,7 +175,7 @@ static int replace_if_different(const char *tmpfile, const char *dep_files[]) if (dep_files) { int pass; for (pass = 0; dep_files[pass]; pass++) { - char from_path[4096] = __FILE__; + const char from_path[4096] = __FILE__; char *p1, *p2; /* dir only */ @@ -3590,7 +3590,7 @@ static void rna_generate_struct_prototypes(FILE *f) if (found == 0) { fprintf(f, "struct %s;\n", struct_name); - if (all_structures >= sizeof(structures) / sizeof(structures[0])) { + if (all_structures >= ARRAY_SIZE(structures)) { printf("Array size to store all structures names is too small\n"); exit(1); } @@ -5147,7 +5147,7 @@ int main(int argc, char **argv) { int return_status = 0; - MEM_initialize_memleak_detection(); + MEM_init_memleak_detection(); MEM_set_error_callback(mem_error_cb); CLG_init(); |