mirror of
https://github.com/Proxmark/proxmark3.git
synced 2025-02-24 07:34:40 +08:00
Make version data const
This commit is contained in:
parent
85f2819c8a
commit
b7913d8f4b
2 changed files with 2 additions and 2 deletions
|
@ -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 */
|
||||
|
|
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue