Make version data const
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
#include "proxmark3.h"
|
#include "proxmark3.h"
|
||||||
/* This is the default version.c file that Makefile.common falls back to if perl is not available */
|
/* 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,
|
VERSION_INFORMATION_MAGIC,
|
||||||
1, /* version version 1 */
|
1, /* version version 1 */
|
||||||
0, /* version information not present */
|
0, /* version information not present */
|
||||||
|
|||||||
@@ -61,7 +61,7 @@ my $ctime = sprintf("%6\$04i-%5\$02i-%4\$02i %3\$02i:%2\$02i:%1\$02i", @compilet
|
|||||||
print <<EOF
|
print <<EOF
|
||||||
#include "proxmark3.h"
|
#include "proxmark3.h"
|
||||||
/* Generated file, do not edit */
|
/* 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,
|
VERSION_INFORMATION_MAGIC,
|
||||||
1,
|
1,
|
||||||
$present,
|
$present,
|
||||||
|
|||||||
Reference in New Issue
Block a user