X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=tests%2Ftest-gc-hmac-md5.c;h=e2fac444552eaa126e7c6a896f98e95bfa8850cb;hb=89ae4589dd58d12e7cbcf0e92c1d828c1e430f97;hp=b8cc3bfaa4c42aab34f93afe8ce59edd0dd73918;hpb=253dda65ba289f58d77b01c8acaf8a8298669e8e;p=gnulib.git diff --git a/tests/test-gc-hmac-md5.c b/tests/test-gc-hmac-md5.c index b8cc3bfaa..e2fac4445 100644 --- a/tests/test-gc-hmac-md5.c +++ b/tests/test-gc-hmac-md5.c @@ -17,9 +17,7 @@ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA * 02110-1301, USA. */ -#ifdef HAVE_CONFIG_H -# include -#endif +#include #include #include @@ -59,21 +57,21 @@ main (int argc, char *argv[]) if (gc_hmac_md5 (key, key_len, data, data_len, out) != 0) { - printf ("call failure\n"); - return 1; + printf ("call failure\n"); + return 1; } if (memcmp (digest, out, 16) != 0) { - size_t i; - printf ("hash 1 mismatch. expected:\n"); - for (i = 0; i < 16; i++) - printf ("%02x ", digest[i] & 0xFF); - printf ("\ncomputed:\n"); - for (i = 0; i < 16; i++) - printf ("%02x ", out[i] & 0xFF); - printf ("\n"); - return 1; + size_t i; + printf ("hash 1 mismatch. expected:\n"); + for (i = 0; i < 16; i++) + printf ("%02x ", digest[i] & 0xFF); + printf ("\ncomputed:\n"); + for (i = 0; i < 16; i++) + printf ("%02x ", out[i] & 0xFF); + printf ("\n"); + return 1; } }