diff options
| -rw-r--r-- | programs/programs.h | 2 | ||||
| -rwxr-xr-x | scripts/mkprograms | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/programs/programs.h b/programs/programs.h index dbe14e2..60fb725 100644 --- a/programs/programs.h +++ b/programs/programs.h | |||
| @@ -4,4 +4,4 @@ | |||
| 4 | #include <map> | 4 | #include <map> |
| 5 | #include <string> | 5 | #include <string> |
| 6 | 6 | ||
| 7 | extern const std::map<std::string, std::uint8_t *> programs; | 7 | extern const std::map<std::string, const std::uint8_t *> programs; |
diff --git a/scripts/mkprograms b/scripts/mkprograms index 0529e63..1d91680 100755 --- a/scripts/mkprograms +++ b/scripts/mkprograms | |||
| @@ -17,13 +17,13 @@ for f in *; do | |||
| 17 | continue | 17 | continue |
| 18 | fi | 18 | fi |
| 19 | b="${f%.*}" | 19 | b="${f%.*}" |
| 20 | echo " extern std::uint8_t _binary_${b}_bin_start[];" | 20 | echo " extern const std::uint8_t _binary_${b}_bin_start[];" |
| 21 | done | 21 | done |
| 22 | 22 | ||
| 23 | cat <<END | 23 | cat <<END |
| 24 | } | 24 | } |
| 25 | 25 | ||
| 26 | const std::map<std::string, std::uint8_t *> programs = { | 26 | const std::map<std::string, const std::uint8_t *> programs = { |
| 27 | END | 27 | END |
| 28 | 28 | ||
| 29 | for f in *; do | 29 | for f in *; do |
