]> cvs.zerfleddert.de Git - proxmark3-svn/commitdiff
Make version data const
authormarcansoft <marcansoft@ef4ab9da-24cd-11de-8aaa-f3a34680c41f>
Fri, 26 Feb 2010 14:02:27 +0000 (14:02 +0000)
committermarcansoft <marcansoft@ef4ab9da-24cd-11de-8aaa-f3a34680c41f>
Fri, 26 Feb 2010 14:02:27 +0000 (14:02 +0000)
common/default_version.c
tools/mkversion.pl

index c094aafa9cb4fd85ba8bf5cab61b6c182132b2d6..9f818beda95d583ca299624aa913031ab9ca0dce 100644 (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 */
index 351bac91f0f894f3a182352e338eb30d71a22659..03ef27d286e24c55791bc46a566551cbe23d599b 100644 (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,
Impressum, Datenschutz