From: marcansoft Date: Fri, 26 Feb 2010 14:02:27 +0000 (+0000) Subject: Make version data const X-Git-Tag: v1.0.0~312 X-Git-Url: https://git.zerfleddert.de/cgi-bin/gitweb.cgi/proxmark3-svn/commitdiff_plain/b7913d8f4b6460bcd8bd47a939fc02155c87367b?ds=inline;hp=85f2819c8a96a1f28d90537975165a02fd019642 Make version data const --- 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 <