From b7913d8f4b6460bcd8bd47a939fc02155c87367b Mon Sep 17 00:00:00 2001 From: marcansoft Date: Fri, 26 Feb 2010 14:02:27 +0000 Subject: [PATCH] Make version data const --- common/default_version.c | 2 +- tools/mkversion.pl | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/common/default_version.c b/common/default_version.c index c094aafa..9f818bed 100644 --- a/common/default_version.c +++ b/common/default_version.c @@ -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 */ diff --git a/tools/mkversion.pl b/tools/mkversion.pl index 351bac91..03ef27d2 100644 --- a/tools/mkversion.pl +++ b/tools/mkversion.pl @@ -61,7 +61,7 @@ my $ctime = sprintf("%6\$04i-%5\$02i-%4\$02i %3\$02i:%2\$02i:%1\$02i", @compilet print <