From: Doug MacEachern Date: Thu, 16 Apr 2009 02:32:52 +0000 (-0400) Subject: network plugin: Fix compile ifndef HAVE_GCRYPT_H X-Git-Tag: collectd-4.7.0~52 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=530356d9f6ffb8784d278d6a6a67d8df5c493cca;p=collectd.git network plugin: Fix compile ifndef HAVE_GCRYPT_H Signed-off-by: Doug MacEachern Signed-off-by: Florian Forster --- 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 */