Skip to content

Commit

Permalink
Tweak compiler warning.
Browse files Browse the repository at this point in the history
  • Loading branch information
Marco van Wieringen committed May 5, 2013
1 parent d834266 commit 9633aa1
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/lib/crypto_cache.c
Expand Up @@ -317,12 +317,12 @@ char *lookup_crypto_cache_entry(const char *VolumeName)
void dump_crypto_cache(int fd)
{
int len;
int max_vol_length = strlen(_("Volumename"));
int max_key_length = strlen(_("EncryptionKey"));
POOL_MEM msg(PM_MESSAGE);
crypto_cache_entry_t *cce;
char dt1[MAX_TIME_LENGTH],
dt2[MAX_TIME_LENGTH];
POOL_MEM msg(PM_MESSAGE);
unsigned int max_vol_length,
max_key_length;

if (!cached_crypto_keys) {
return;
Expand All @@ -336,6 +336,8 @@ void dump_crypto_cache(int fd)
/*
* See how long the biggest volumename and key are.
*/
max_vol_length = strlen(_("Volumename"));
max_key_length = strlen(_("EncryptionKey"));
foreach_dlist(cce, cached_crypto_keys) {
if (strlen(cce->VolumeName) > max_vol_length) {
max_vol_length = strlen(cce->VolumeName);
Expand Down

0 comments on commit 9633aa1

Please sign in to comment.