diff options
author | wollman <wollman@FreeBSD.org> | 1995-04-27 16:05:51 +0000 |
---|---|---|
committer | wollman <wollman@FreeBSD.org> | 1995-04-27 16:05:51 +0000 |
commit | 56ee4e4255549312f7c94c51a06a8cc38bef0d75 (patch) | |
tree | de4cf068edb31c84419cae3d5a6b7fb98fcf7090 /lib/libmd | |
parent | 86526692868a41d28d14f3fa6f0c7b9df4eb35c7 (diff) | |
download | FreeBSD-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')
-rw-r--r-- | lib/libmd/mdXhl.c | 4 |
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); |