From: John Kohl Date: Thu, 8 Nov 1990 15:12:32 +0000 (+0000) Subject: change bcmp to memcmp, bcopy to memcpy X-Git-Tag: krb5-1.0-alpha3~166 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=a2deb472cd3323ac80337a7fe73b75b476d7f200;p=krb5.git change bcmp to memcmp, bcopy to memcpy git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@1426 dc483132-0cff-0310-8789-dd5450dbe970 --- diff --git a/src/lib/crypto/des/destest.c b/src/lib/crypto/des/destest.c index e85e4823d..7b4f8ea50 100644 --- a/src/lib/crypto/des/destest.c +++ b/src/lib/crypto/des/destest.c @@ -72,7 +72,7 @@ char *argv[]; mit_des_ecb_encrypt(input, output2, (struct mit_des_ks_struct *)eblock.priv,1); - if (bcmp((char *)output2, (char *)output, 8)) { + if (memcmp((char *)output2, (char *)output, 8)) { fprintf(stderr, "DES ERROR, key %s, text %s, real cipher %s, computed %02X%02X%02X%02X%02X%02X%02X%02X\n", block1, block2, block3, @@ -134,7 +134,7 @@ char cblock[]; printf("Bad value nybble %d in %s\n", i, text); exit(1); } - bcopy(value2[value[text[i]]], &cblock[i*4], 4); + memcpy(&cblock[i*4], value2[value[text[i]]], 4); } cblock[64] = 0; return;