summaryrefslogtreecommitdiff
path: root/tests/random.c
diff options
context:
space:
mode:
authorWerner Koch <wk@gnupg.org>2011-03-28 14:46:36 +0200
committerWerner Koch <wk@gnupg.org>2011-03-28 14:46:36 +0200
commitdd76819014c4e9d75c4b9613e888f7536c676a46 (patch)
tree065cea5055f317e3d2513868af1a01fc31edb5db /tests/random.c
parent9730275d294b4d9cbbb2453541f001c95f5f31a3 (diff)
downloadlibgcrypt-dd76819014c4e9d75c4b9613e888f7536c676a46.tar.gz
Fixed a few warnings emitted by gcc 4.6.
Diffstat (limited to 'tests/random.c')
-rw-r--r--tests/random.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/tests/random.c b/tests/random.c
index 0575e8a0..a2435293 100644
--- a/tests/random.c
+++ b/tests/random.c
@@ -84,9 +84,7 @@ readn (int fd, void *buf, size_t buflen, size_t *ret_nread)
{
size_t nleft = buflen;
int nread;
- char *p;
- p = buf;
while ( nleft > 0 )
{
nread = read ( fd, buf, nleft );