diff options
| author | Dirk Engling <erdgeist@erdgeist.org> | 2026-10-26 17:13:36 +0100 |
|---|---|---|
| committer | Dirk Engling <erdgeist@erdgeist.org> | 2026-10-26 17:13:36 +0100 |
| commit | 6837c5ac80e3624c6dc3a82d03e50d68b2f5a989 (patch) | |
| tree | f829fa152980cefec412483b240813432c9406d7 /ot_hex.c | |
| parent | 6871825565d0ba24436dbd5b92cc09e02f93af6a (diff) | |
Second run of making variable and function names more readable, urlencoder now matches overall naming scheme
Diffstat (limited to 'ot_hex.c')
| -rw-r--r-- | ot_hex.c | 4 |
1 files changed, 2 insertions, 2 deletions
| @@ -23,7 +23,7 @@ int hex_value(int c) { | |||
| 23 | 23 | ||
| 24 | int hex_isdigit(int c) { return hex_value(c) >= 0; } | 24 | int hex_isdigit(int c) { return hex_value(c) >= 0; } |
| 25 | 25 | ||
| 26 | char *hex_fromhash(char *dest, const uint8_t *hash) { | 26 | char *hex_from_hash(char *dest, const uint8_t *hash) { |
| 27 | static const char digits[] = "0123456789ABCDEF"; | 27 | static const char digits[] = "0123456789ABCDEF"; |
| 28 | char *d = dest; | 28 | char *d = dest; |
| 29 | size_t i; | 29 | size_t i; |
| @@ -36,7 +36,7 @@ char *hex_fromhash(char *dest, const uint8_t *hash) { | |||
| 36 | return dest; | 36 | return dest; |
| 37 | } | 37 | } |
| 38 | 38 | ||
| 39 | int hex_tohash(ot_hash hash, const char *src) { | 39 | int hex_to_hash(ot_hash hash, const char *src) { |
| 40 | uint8_t decoded[sizeof(ot_hash)]; | 40 | uint8_t decoded[sizeof(ot_hash)]; |
| 41 | size_t i; | 41 | size_t i; |
| 42 | 42 | ||
