projects
/
gnulib.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Convert c-strcasestr to be more efficient.
[gnulib.git]
/
tests
/
test-gc-pbkdf2-sha1.c
diff --git
a/tests/test-gc-pbkdf2-sha1.c
b/tests/test-gc-pbkdf2-sha1.c
index
8027b9c
..
933af95
100644
(file)
--- a/
tests/test-gc-pbkdf2-sha1.c
+++ b/
tests/test-gc-pbkdf2-sha1.c
@@
-1,5
+1,5
@@
/*
/*
- * Copyright (C) 2002, 2003, 2004, 2005 Free Software Foundation
+ * Copyright (C) 2002, 2003, 2004, 2005
, 2007
Free Software Foundation
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@
-18,9
+18,7
@@
/* Written by Simon Josefsson. */
/* Written by Simon Josefsson. */
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
+#include <config.h>
#include "gc.h"
#include "gc.h"
@@
-95,13
+93,14
@@
main (int argc, char *argv[])
pkcs5[i].iterations, out, pkcs5[i].dklen);
if (rc != GC_OK)
{
pkcs5[i].iterations, out, pkcs5[i].dklen);
if (rc != GC_OK)
{
- printf ("PKCS5 entry %d failed fatally: %d\n", i, rc);
+ printf ("PKCS5 entry %ld failed fatally: %d\n",
+ (unsigned long) i, rc);
return 1;
}
if (memcmp (pkcs5[i].expected, out, pkcs5[i].dklen) != 0)
{
return 1;
}
if (memcmp (pkcs5[i].expected, out, pkcs5[i].dklen) != 0)
{
- printf ("PKCS5 entry %
d failed\n",
i);
+ printf ("PKCS5 entry %
ld failed\n", (unsigned long)
i);
return 1;
}
}
return 1;
}
}