summaryrefslogtreecommitdiffstats
path: root/cipher/md.c
diff options
context:
space:
mode:
authorWerner Koch <wk@gnupg.org>1999-02-16 14:16:33 +0100
committerWerner Koch <wk@gnupg.org>1999-02-16 14:16:33 +0100
commite1a1b3fc90af66a5db5ee92514b0a7c52e49d1ed (patch)
tree31dd54ac26b4c3fc30cc93d66161e72bf4cf7927 /cipher/md.c
parentSee ChangeLog: Sat Feb 13 14:13:04 CET 1999 Werner Koch (diff)
downloadgnupg2-e1a1b3fc90af66a5db5ee92514b0a7c52e49d1ed.tar.xz
gnupg2-e1a1b3fc90af66a5db5ee92514b0a7c52e49d1ed.zip
See ChangeLog: Tue Feb 16 14:10:02 CET 1999 Werner Koch
Diffstat (limited to 'cipher/md.c')
-rw-r--r--cipher/md.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/cipher/md.c b/cipher/md.c
index 6c4d1124b..95167ff49 100644
--- a/cipher/md.c
+++ b/cipher/md.c
@@ -479,15 +479,15 @@ md_asn_oid( int algo, size_t *asnlen, size_t *mdlen )
void
md_start_debug( MD_HANDLE md, const char *suffix )
{
- static int index=0;
+ static int idx=0;
char buf[25];
if( md->debug ) {
log_debug("Oops: md debug already started\n");
return;
}
- index++;
- sprintf(buf, "dbgmd-%05d.%.10s", index, suffix );
+ idx++;
+ sprintf(buf, "dbgmd-%05d.%.10s", idx, suffix );
md->debug = fopen(buf, "w");
if( !md->debug )
log_debug("md debug: can't open %s\n", buf );