Skip to content

Commit

Permalink
Fix compiling for GNU
Browse files Browse the repository at this point in the history
Signed-off-by: Ivan Rogach <[email protected]>
  • Loading branch information
jannejy committed Dec 18, 2024
1 parent 3790262 commit 4b9eb2c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions 3rd_party/cert_rehash/c_rehash.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -120,9 +120,9 @@ static void add_entry(int type, unsigned int hash, const char* filename, const u
}

static int handle_symlink(const char* filename, const char* fullpath) {
static char xdigit[] = {0, 1, 2, 3, 4, 5, 6, 7, 8, 9, -1, -1, -1, -1, -1, -1, -1, 10, 11,
12, 13, 14, 15, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 10, 11, 12, 13, 14, 15};
static signed char xdigit[] = {0, 1, 2, 3, 4, 5, 6, 7, 8, 9, -1, -1, -1, -1, -1, -1, -1, 10, 11,
12, 13, 14, 15, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 10, 11, 12, 13, 14, 15};
char linktarget[NAME_MAX], *endptr;
unsigned int hash = 0;
unsigned char ch;
Expand Down

0 comments on commit 4b9eb2c

Please sign in to comment.