chiark / gitweb /
Argh! RO[LR]64 broken on 32-bit shifts! Tested and fixed.
[mLib] / hex.c
diff --git a/hex.c b/hex.c
index 93bc3de2a9ca3d3f69414e428cbe36697ec5a717..63426fcaca81c32ce66938d454846dc87dae4834 100644 (file)
--- a/hex.c
+++ b/hex.c
@@ -1,6 +1,6 @@
 /* -*-c-*-
  *
- * $Id: hex.c,v 1.1 2002/01/13 13:26:30 mdw Exp $
+ * $Id: hex.c,v 1.3 2004/04/08 01:36:11 mdw Exp $
  *
  * Hexadecimal encoding and decoding.
  *
  * MA 02111-1307, USA.
  */
 
-/*----- Revision history --------------------------------------------------*
- *
- * $Log: hex.c,v $
- * Revision 1.1  2002/01/13 13:26:30  mdw
- * New hex encoding stuff.
- *
- */
-
 /*----- Header files ------------------------------------------------------*/
 
 #include <stdio.h>
@@ -175,7 +167,7 @@ int main(int argc, char *argv[])
   unsigned char buf[BUFSIZ];
   dstr d = DSTR_INIT;
   hex_ctx ctx;
-  void (*proc)(hex_ctx *, const unsigned char *, size_t, dstr *);
+  void (*proc)(hex_ctx *, const void *, size_t, dstr *);
   size_t sz;
 
   hex_init(&ctx);