Make version data const

This commit is contained in:
marcansoft 2010-02-26 14:02:27 +00:00
parent 85f2819c8a
commit b7913d8f4b
2 changed files with 2 additions and 2 deletions

View file

@ -1,6 +1,6 @@
#include "proxmark3.h"
/* This is the default version.c file that Makefile.common falls back to if perl is not available */
struct version_information __attribute__((section(".version_information"))) version_information = {
const struct version_information __attribute__((section(".version_information"))) version_information = {
VERSION_INFORMATION_MAGIC,
1, /* version version 1 */
0, /* version information not present */

View file

@ -61,7 +61,7 @@ my $ctime = sprintf("%6\$04i-%5\$02i-%4\$02i %3\$02i:%2\$02i:%1\$02i", @compilet
print <<EOF
#include "proxmark3.h"
/* Generated file, do not edit */
struct version_information __attribute__((section(".version_information"))) version_information = {
const struct version_information __attribute__((section(".version_information"))) version_information = {
VERSION_INFORMATION_MAGIC,
1,
$present,