summaryrefslogtreecommitdiff
path: root/ot_hex.c
diff options
context:
space:
mode:
authorDirk Engling <erdgeist@erdgeist.org>2026-10-26 17:13:36 +0100
committerDirk Engling <erdgeist@erdgeist.org>2026-10-26 17:13:36 +0100
commit6837c5ac80e3624c6dc3a82d03e50d68b2f5a989 (patch)
treef829fa152980cefec412483b240813432c9406d7 /ot_hex.c
parent6871825565d0ba24436dbd5b92cc09e02f93af6a (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.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ot_hex.c b/ot_hex.c
index 9581951..2bf69c4 100644
--- a/ot_hex.c
+++ b/ot_hex.c
@@ -23,7 +23,7 @@ int hex_value(int c) {
23 23
24int hex_isdigit(int c) { return hex_value(c) >= 0; } 24int hex_isdigit(int c) { return hex_value(c) >= 0; }
25 25
26char *hex_fromhash(char *dest, const uint8_t *hash) { 26char *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
39int hex_tohash(ot_hash hash, const char *src) { 39int 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