diff options
author | Campbell Barton <ideasman42@gmail.com> | 2014-03-15 20:24:05 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2014-03-15 20:26:23 +0400 |
commit | 2097e621edcf7658895b9f6ba9cc4e51f5538369 (patch) | |
tree | 9f112e8a2b35fed01734ed355d3832cd857de826 /source/blender/makesdna/intern/makesdna.c | |
parent | 38244166b03bc4a01d8c0b99e2fd2cb2c9b60012 (diff) |
Code cleanup: use r_ prefix for return args
Diffstat (limited to 'source/blender/makesdna/intern/makesdna.c')
-rw-r--r-- | source/blender/makesdna/intern/makesdna.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/source/blender/makesdna/intern/makesdna.c b/source/blender/makesdna/intern/makesdna.c index d95c394b60f..3845e7cde2c 100644 --- a/source/blender/makesdna/intern/makesdna.c +++ b/source/blender/makesdna/intern/makesdna.c @@ -520,7 +520,7 @@ static int preprocess_include(char *maindata, int len) return newlen; } -static void *read_file_data(char *filename, int *len_r) +static void *read_file_data(char *filename, int *r_len) { #ifdef WIN32 FILE *fp = fopen(filename, "rb"); @@ -530,23 +530,23 @@ static void *read_file_data(char *filename, int *len_r) void *data; if (!fp) { - *len_r = -1; + *r_len = -1; return NULL; } fseek(fp, 0L, SEEK_END); - *len_r = ftell(fp); + *r_len = ftell(fp); fseek(fp, 0L, SEEK_SET); - data = MEM_mallocN(*len_r, "read_file_data"); + data = MEM_mallocN(*r_len, "read_file_data"); if (!data) { - *len_r = -1; + *r_len = -1; fclose(fp); return NULL; } - if (fread(data, *len_r, 1, fp) != 1) { - *len_r = -1; + if (fread(data, *r_len, 1, fp) != 1) { + *r_len = -1; MEM_freeN(data); fclose(fp); return NULL; |