From 343edf2722a9e114b98944c1147676e630e699b7 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Sun, 29 Apr 2012 17:11:40 +0000 Subject: style cleanup: function calls & whitespace. --- source/blender/makesdna/intern/dna_genfile.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'source/blender/makesdna') diff --git a/source/blender/makesdna/intern/dna_genfile.c b/source/blender/makesdna/intern/dna_genfile.c index 41c04ca0899..557c0393166 100644 --- a/source/blender/makesdna/intern/dna_genfile.c +++ b/source/blender/makesdna/intern/dna_genfile.c @@ -338,7 +338,7 @@ static void init_structDNA(SDNA *sdna, int do_endian_swap) else sdna->nr_names= *data; data++; - sdna->names= MEM_callocN( sizeof(void *)*sdna->nr_names, "sdnanames"); + sdna->names= MEM_callocN(sizeof(void *)*sdna->nr_names, "sdnanames"); } else { printf("NAME error in SDNA file\n"); @@ -378,7 +378,7 @@ static void init_structDNA(SDNA *sdna, int do_endian_swap) else sdna->nr_types= *data; data++; - sdna->types= MEM_callocN( sizeof(void *)*sdna->nr_types, "sdnatypes"); + sdna->types= MEM_callocN(sizeof(void *)*sdna->nr_types, "sdnatypes"); } else { printf("TYPE error in SDNA file\n"); @@ -442,7 +442,7 @@ static void init_structDNA(SDNA *sdna, int do_endian_swap) else sdna->nr_structs= *data; data++; - sdna->structs= MEM_callocN( sizeof(void *)*sdna->nr_structs, "sdnastrcs"); + sdna->structs= MEM_callocN(sizeof(void *)*sdna->nr_structs, "sdnastrcs"); } else { printf("STRC error in SDNA file\n"); @@ -933,7 +933,7 @@ static void reconstruct_struct(SDNA *newsdna, SDNA *oldsdna, spo= oldsdna->structs[oldSDNAnr]; elen= oldsdna->typelens[ spo[0] ]; - memcpy( cur, data, elen); + memcpy(cur, data, elen); return; } @@ -1140,7 +1140,7 @@ void *DNA_struct_reconstruct(SDNA *newsdna, SDNA *oldsdna, char *compflags, int return NULL; } - cur= MEM_callocN( blocks*curlen, "reconstruct"); + cur= MEM_callocN(blocks*curlen, "reconstruct"); cpc= cur; cpo= data; for (a=0; a