summaryrefslogtreecommitdiffstats
path: root/lib/libmd/mdXhl.c
diff options
context:
space:
mode:
authorwollman <wollman@FreeBSD.org>1995-04-27 16:05:51 +0000
committerwollman <wollman@FreeBSD.org>1995-04-27 16:05:51 +0000
commit56ee4e4255549312f7c94c51a06a8cc38bef0d75 (patch)
treede4cf068edb31c84419cae3d5a6b7fb98fcf7090 /lib/libmd/mdXhl.c
parent86526692868a41d28d14f3fa6f0c7b9df4eb35c7 (diff)
downloadFreeBSD-src-56ee4e4255549312f7c94c51a06a8cc38bef0d75.zip
FreeBSD-src-56ee4e4255549312f7c94c51a06a8cc38bef0d75.tar.gz
No sense in copying the hex[] array in each call to MDXEnd(), it's a
constant. (There probably ought to be a single libc version of it.)
Diffstat (limited to 'lib/libmd/mdXhl.c')
-rw-r--r--lib/libmd/mdXhl.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libmd/mdXhl.c b/lib/libmd/mdXhl.c
index 76152ca..10c521c 100644
--- a/lib/libmd/mdXhl.c
+++ b/lib/libmd/mdXhl.c
@@ -6,7 +6,7 @@
* this stuff is worth it, you can buy me a beer in return. Poul-Henning Kamp
* ----------------------------------------------------------------------------
*
- * $FreeBSD$
+ * $Id$
*
*/
@@ -25,7 +25,7 @@ MDXEnd(MDX_CTX *ctx)
int i;
char *p = malloc(33);
unsigned char digest[16];
- char hex[]="0123456789abcdef";
+ static const char hex[]="0123456789abcdef";
if(!p) return 0;
MDXFinal(digest,ctx);
OpenPOWER on IntegriCloud