summaryrefslogtreecommitdiffstats
path: root/tests/helpers
diff options
context:
space:
mode:
authorKarel Zak2017-12-12 11:54:08 +0100
committerKarel Zak2017-12-12 12:06:15 +0100
commit42dea85c5aee6059052716b85aa109a2f2c7e87c (patch)
tree8751a64266bcfaae60cd0b660cd6d0258f82454a /tests/helpers
parentlib/sha1: fix indention (diff)
downloadkernel-qcow2-util-linux-42dea85c5aee6059052716b85aa109a2f2c7e87c.tar.gz
kernel-qcow2-util-linux-42dea85c5aee6059052716b85aa109a2f2c7e87c.tar.xz
kernel-qcow2-util-linux-42dea85c5aee6059052716b85aa109a2f2c7e87c.zip
lib/md5: use ul_/UL_ prefix
The symbols names are too generic. Addresses: https://github.com/karelzak/util-linux/issues/548 Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'tests/helpers')
-rw-r--r--tests/helpers/test_md5.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/tests/helpers/test_md5.c b/tests/helpers/test_md5.c
index 471580e12..6f8dec4aa 100644
--- a/tests/helpers/test_md5.c
+++ b/tests/helpers/test_md5.c
@@ -7,22 +7,22 @@
int main(void)
{
int i, ret;
- struct MD5Context ctx;
- unsigned char digest[MD5LENGTH];
+ struct UL_MD5Context ctx;
+ unsigned char digest[UL_MD5LENGTH];
unsigned char buf[BUFSIZ];
- MD5Init( &ctx );
+ ul_MD5Init( &ctx );
while(!feof(stdin) && !ferror(stdin)) {
ret = fread(buf, 1, sizeof(buf), stdin);
if (ret)
- MD5Update( &ctx, buf, ret );
+ ul_MD5Update( &ctx, buf, ret );
}
fclose(stdin);
- MD5Final( digest, &ctx );
+ ul_MD5Final( digest, &ctx );
- for (i = 0; i < MD5LENGTH; i++)
+ for (i = 0; i < UL_MD5LENGTH; i++)
printf( "%02x", digest[i] );
printf("\n");
return 0;