Skip to content

Commit

Permalink
fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
howard0su committed Feb 12, 2019
1 parent 4c8bac0 commit 8715921
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/config/config.c
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
#include <stdlib.h>
#include <string.h>

#define DEFAULTS_ZERO (u16*)0x01
#define DEFAULTS_ZERO (const u16*)0x01

#define MATCH_KEY(s) strcasecmp(name, s) == 0
#define MATCH_VALUE(s) strcasecmp(value, s) == 0
Expand Down Expand Up @@ -158,7 +158,7 @@ int assign_int(void* ptr, const struct struct_map *map, int map_size, const char
return 0;
}

int write_int2(void* ptr, const struct struct_map *map, u16* defaults, int map_size, FILE* fh) {
int write_int2(void* ptr, const struct struct_map *map, const u16* defaults, int map_size, FILE* fh) {
for (int i = 0; i < map_size; i++) {
int size = map[i].offset >> 12;
int offset = map[i].offset & 0xFFF;
Expand Down
2 changes: 1 addition & 1 deletion src/config/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,6 @@ int assign_int(void* ptr, const struct struct_map *map, int map_size,
const char* name, const char* value);
int write_int(void* ptr, const struct struct_map *map, int map_size, FILE* fh);

int write_int2(void* ptr, const struct struct_map *map, u16* defaults, int map_size, FILE* fh);
int write_int2(void* ptr, const struct struct_map *map, const u16* defaults, int map_size, FILE* fh);

#endif

0 comments on commit 8715921

Please sign in to comment.