From 530356d9f6ffb8784d278d6a6a67d8df5c493cca Mon Sep 17 00:00:00 2001 From: Doug MacEachern Date: Wed, 15 Apr 2009 22:32:52 -0400 Subject: [PATCH] network plugin: Fix compile ifndef HAVE_GCRYPT_H Signed-off-by: Doug MacEachern Signed-off-by: Florian Forster --- src/network.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/network.c b/src/network.c index 722f1d67..92714915 100644 --- a/src/network.c +++ b/src/network.c @@ -993,7 +993,7 @@ static int parse_part_encr_aes256 (sockent_t *se, /* {{{ */ #else /* if !HAVE_GCRYPT_H */ static int parse_part_encr_aes256 (sockent_t *se, /* {{{ */ - void **ret_buffer, size_t *ret_buffer_len) + void **ret_buffer, size_t *ret_buffer_len, int flags) { INFO ("network plugin: Received encrypted packet, but the network " "plugin was not linked with libgcrypt, so I cannot " @@ -1011,8 +1011,8 @@ static int parse_packet (sockent_t *se, /* {{{ */ notification_t n; int packet_was_signed = (flags & PP_SIGNED); - int packet_was_encrypted = (flags & PP_ENCRYPTED); #if HAVE_GCRYPT_H + int packet_was_encrypted = (flags & PP_ENCRYPTED); int printed_ignore_warning = 0; #endif /* HAVE_GCRYPT_H */ -- 2.30.2