chiark / gitweb /
Use libsamplerate in disorder-normalize, if available. If it's not
[disorder] / 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;
 
-  if((d = unhexdigitq(c)) < 0) error(0, "invalid hex digit");
+  if((d = unhexdigitq(c)) < 0)
+    disorder_error(0, "invalid hex digit");
   return d;
 }
 
@@ -96,7 +97,7 @@ uint8_t *unhex(const char *s, size_t *np) {
   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);