From 0af161cb9d72b3d38c38ecdbe2eb5da77ad05fc5 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Fri, 8 Oct 2010 14:08:49 +0000 Subject: [PATCH] struct --- src/util/crypto_ksk.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/util/crypto_ksk.c b/src/util/crypto_ksk.c index af0905a33..d560cf0ea 100644 --- a/src/util/crypto_ksk.c +++ b/src/util/crypto_ksk.c @@ -695,13 +695,13 @@ ksk_decode_key (const struct KskRsaPrivateKeyBinaryEncoded *encoding) } -typedef struct +struct KBlockKeyCacheLine { GNUNET_HashCode hc; struct KskRsaPrivateKeyBinaryEncoded *pke; -} KBlockKeyCacheLine; +}; -static KBlockKeyCacheLine **cache; +static struct KBlockKeyCacheLine **cache; static unsigned int cacheSize; @@ -713,7 +713,7 @@ struct GNUNET_CRYPTO_RsaPrivateKey * GNUNET_CRYPTO_rsa_key_create_from_hash (const GNUNET_HashCode * hc) { struct GNUNET_CRYPTO_RsaPrivateKey *ret; - KBlockKeyCacheLine *line; + struct KBlockKeyCacheLine *line; int i; for (i = 0; i < cacheSize; i++) @@ -725,7 +725,7 @@ GNUNET_CRYPTO_rsa_key_create_from_hash (const GNUNET_HashCode * hc) } } - line = GNUNET_malloc (sizeof (KBlockKeyCacheLine)); + line = GNUNET_malloc (sizeof (struct KBlockKeyCacheLine)); line->hc = *hc; line->pke = makeKblockKeyInternal (hc); GNUNET_array_grow (cache, cacheSize, cacheSize + 1); -- 2.25.1