diff options
author | Campbell Barton <ideasman42@gmail.com> | 2014-04-26 18:24:11 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2014-04-26 18:25:16 +0400 |
commit | 7ca74fc1c008355b84c08bcadb56ea6acabce2f3 (patch) | |
tree | 6823cc2e0945928dbabb3e4735380128d61eace2 /source/blender/makesdna/intern/makesdna.c | |
parent | 88a0fe5f1bc52ebd918be1f63af57cf0f9d594d1 (diff) |
Code cleanup: use 'const' for arrays (blenloader, gpu, imbuf, makesdna, modifiers, nodes)
Diffstat (limited to 'source/blender/makesdna/intern/makesdna.c')
-rw-r--r-- | source/blender/makesdna/intern/makesdna.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/source/blender/makesdna/intern/makesdna.c b/source/blender/makesdna/intern/makesdna.c index 3845e7cde2c..51a0c5a7b0f 100644 --- a/source/blender/makesdna/intern/makesdna.c +++ b/source/blender/makesdna/intern/makesdna.c @@ -723,7 +723,7 @@ static int arraysize(const char *str) static int calculate_structlens(int firststruct) { int a, b, len_native, len_32, len_64, unknown = nr_structs, lastunknown, structtype, type, mul, namelen; - short *sp, *structpoin; + const short *sp, *structpoin; const char *cp; int has_pointer, dna_error = 0; @@ -907,7 +907,7 @@ static void dna_write(FILE *file, const void *pntr, const int size) { static int linelength = 0; int i; - char *data; + const char *data; data = (char *) pntr; @@ -925,7 +925,7 @@ void printStructLengths(void) { int a, unknown = nr_structs, structtype; /*int lastunknown;*/ /*UNUSED*/ - short *structpoin; + const short *structpoin; printf("\n\n*** All detected structs:\n"); while (unknown) { @@ -948,7 +948,7 @@ void printStructLengths(void) static int make_structDNA(const char *baseDirectory, FILE *file) { int len, i; - short *sp; + const short *sp; /* str contains filenames. Since we now include paths, I stretched */ /* it a bit. Hope this is enough :) -nzc- */ char str[SDNA_MAX_FILENAME_LENGTH], *cp; |