chiark
/
gitweb
/
~mdw
/
disorder
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Support global prefs through eclient interface.
[disorder]
/
lib
/
hex.c
diff --git
a/lib/hex.c
b/lib/hex.c
index 4ae9d6756f8a2df027628081e6b7fd3e91620bb9..efd14b11c5d5ab4d194a877f8397bf61da5740eb 100644
(file)
--- a/
lib/hex.c
+++ b/
lib/hex.c
@@
-75,7
+75,8
@@
int unhexdigitq(int c) {
int unhexdigit(int c) {
int d;
int unhexdigit(int c) {
int d;
- if((d = unhexdigitq(c)) < 0) error(0, "invalid hex digit");
+ if((d = unhexdigitq(c)) < 0)
+ disorder_error(0, "invalid hex digit");
return d;
}
return d;
}
@@
-96,7
+97,7
@@
uint8_t *unhex(const char *s, size_t *np) {
int d1, d2;
if((l = strlen(s)) & 1) {
int d1, d2;
if((l = strlen(s)) & 1) {
- error(0, "hex string has odd length");
+
disorder_
error(0, "hex string has odd length");
return 0;
}
p = buf = xmalloc_noptr(l / 2);
return 0;
}
p = buf = xmalloc_noptr(l / 2);