summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristophe Fergeau <cfergeau@redhat.com>2014-03-19 14:00:09 +0100
committerChristophe Fergeau <cfergeau@redhat.com>2014-04-16 16:50:13 +0200
commitdb984941af2db36859de9e3e1cf65d0a19c6b481 (patch)
tree46e5d46333320da5b6fe7164969e537f0ad3bbb1
parent37bf7a516353b323a56ceec820930edef9f784f9 (diff)
Fix --without-sasl build
There are 2 SASL-related function prototypes which are unused in the --without-sasl case. They cause a warning, and a build failure when using -Werror. Wrapping them in #if HAVE_SASL avoids this issue.
-rw-r--r--server/reds_stream.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/server/reds_stream.c b/server/reds_stream.c
index 873b9534..bc423a13 100644
--- a/server/reds_stream.c
+++ b/server/reds_stream.c
@@ -162,7 +162,9 @@ void reds_stream_remove_watch(RedsStream* s)
}
}
+#if HAVE_SASL
static ssize_t reds_stream_sasl_read(RedsStream *s, uint8_t *buf, size_t nbyte);
+#endif
ssize_t reds_stream_read(RedsStream *s, void *buf, size_t nbyte)
{
@@ -196,7 +198,9 @@ bool reds_stream_write_all(RedsStream *stream, const void *in_buf, size_t n)
return TRUE;
}
+#if HAVE_SASL
static ssize_t reds_stream_sasl_write(RedsStream *s, const void *buf, size_t nbyte);
+#endif
ssize_t reds_stream_write(RedsStream *s, const void *buf, size_t nbyte)
{