diff options
author | Campbell Barton <ideasman42@gmail.com> | 2012-11-03 13:14:06 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2012-11-03 13:14:06 +0400 |
commit | 7353f8d58e51cc50a1b23b8c16a8024a24056bc3 (patch) | |
tree | 514619cb76f64d1f4c16e6b5329cb464f11c0d2e /source | |
parent | d24278635a4ea052df5ea9b4904ab27633a83ecc (diff) |
remove unneeded string in datatoc.c and correct some of the context types in our documentation.
Diffstat (limited to 'source')
-rw-r--r-- | source/blender/datatoc/datatoc.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/source/blender/datatoc/datatoc.c b/source/blender/datatoc/datatoc.c index a7da037ff16..379658bb4c4 100644 --- a/source/blender/datatoc/datatoc.c +++ b/source/blender/datatoc/datatoc.c @@ -49,7 +49,6 @@ static char *basename(char *string) int main(int argc, char **argv) { FILE *fpin, *fpout; - char sizest[256]; long size; int i; @@ -79,8 +78,6 @@ int main(int argc, char **argv) for (i = 0; i < (int)strlen(argv[1]); i++) if (argv[1][i] == '.') argv[1][i] = '_'; - sprintf(sizest, "%d", (int)size); - fpout = fopen(argv[2], "w"); if (!fpout) { fprintf(stderr, "Unable to open output <%s>\n", argv[2]); @@ -88,7 +85,7 @@ int main(int argc, char **argv) } fprintf(fpout, "/* DataToC output of file <%s> */\n\n", argv[1]); - fprintf(fpout, "int datatoc_%s_size = %s;\n", argv[1], sizest); + fprintf(fpout, "int datatoc_%s_size = %d;\n", argv[1], (int)size); fprintf(fpout, "char datatoc_%s[] = {\n", argv[1]); while (size--) { /* if we want to open in an editor |