aboutsummaryrefslogtreecommitdiffstats
path: root/utils/native-tools/bin2h.c
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2017-05-05 04:59:07 -0700
committerChris Robinson <[email protected]>2017-05-05 04:59:07 -0700
commit47f843632fde72c53599740f0480b55ef666ac9a (patch)
tree65957137c9c3e9d9147c4a319f1cf6c7e40082aa /utils/native-tools/bin2h.c
parentdb6f14748c0fce4d43d2e2c27a4c2847638297d1 (diff)
Make the generated data array static const
Diffstat (limited to 'utils/native-tools/bin2h.c')
-rw-r--r--utils/native-tools/bin2h.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/utils/native-tools/bin2h.c b/utils/native-tools/bin2h.c
index d9f5eb9a..92f2b8a5 100644
--- a/utils/native-tools/bin2h.c
+++ b/utils/native-tools/bin2h.c
@@ -44,7 +44,7 @@ int main (int argc, char *argv[])
return EXIT_FAILURE;
}
- if (fprintf(output_file, "unsigned char %s[] = {", variable_name) < 0)
+ if (fprintf(output_file, "static const unsigned char %s[] = {", variable_name) < 0)
{
printf("Could not write to output file '%s': %s\n", output_name, strerror(ferror(output_file)));
return EXIT_FAILURE;