From e9c048007b113fdf05ca3ccbfa25d01c24f1da43 Mon Sep 17 00:00:00 2001 From: Ben Pfaff Date: Fri, 13 Jul 2012 14:34:51 -0700 Subject: [PATCH] test-sha1: Remove unneeded casts. Signed-off-by: Ben Pfaff --- tests/test-sha1.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/test-sha1.c b/tests/test-sha1.c index 8eb5c5ead..2be79422e 100644 --- a/tests/test-sha1.c +++ b/tests/test-sha1.c @@ -1,5 +1,5 @@ /* - * Copyright (c) 2009, 2011 Nicira, Inc. + * Copyright (c) 2009, 2011, 2012 Nicira, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -108,8 +108,8 @@ test_one(const struct test_vector *vec) struct sha1_ctx sha1; sha1_init(&sha1); - sha1_update(&sha1, (const void *) vec->data, n0); - sha1_update(&sha1, (const void *) (vec->data + n0), n1); + sha1_update(&sha1, vec->data, n0); + sha1_update(&sha1, vec->data + n0, n1); sha1_final(&sha1, md); assert(!memcmp(md, vec->output, SHA1_DIGEST_SIZE)); } -- 2.43.0