diff --git a/src/plugins/lda-sieve/Makefile.am b/src/plugins/lda-sieve/Makefile.am
index ddbcfde2a30a84011fe9b477b894e35980200973..616dc56afc90c21557e65077dee2749f42952756 100644
--- a/src/plugins/lda-sieve/Makefile.am
+++ b/src/plugins/lda-sieve/Makefile.am
@@ -16,7 +16,9 @@ lib90_sieve_plugin_la_LIBADD = \
 	$(top_srcdir)/src/lib-sieve/libdovecot-sieve.la
 
 lib90_sieve_plugin_la_SOURCES = \
+	lda-sieve-log.c \
 	lda-sieve-plugin.c 
 
 noinst_HEADERS = \
+	lda-sieve-log.h \
 	lda-sieve-plugin.h
diff --git a/src/plugins/lda-sieve/lda-sieve-log.c b/src/plugins/lda-sieve/lda-sieve-log.c
index 0fb34bd8b73b214bd94bffb69a18dc0ca798164e..7b6b5aef6c9ddaee1fe4532cc4f3f1f2bb967fa5 100644
--- a/src/plugins/lda-sieve/lda-sieve-log.c
+++ b/src/plugins/lda-sieve/lda-sieve-log.c
@@ -22,10 +22,10 @@ struct lda_sieve_log_ehandler {
 	struct mail_deliver_context *mdctx;
 };
 
-typedef void (*log_func_t)(const char *fmt, ...) ATTR_FORMAT(1, 2)
+typedef void (*log_func_t)(const char *fmt, ...) ATTR_FORMAT(1, 2);
 
 static void lda_sieve_vlog
-(struct sieve_error_handler *_ehandler, log_func_t *log_func,
+(struct sieve_error_handler *_ehandler, log_func_t log_func,
 	const char *location, const char *fmt, va_list args) 
 {
 	struct lda_sieve_log_ehandler *ehandler =
@@ -44,7 +44,7 @@ static void lda_sieve_vlog
 	if ( location != NULL && *location != '\0' )
 		str_printfa(str, "%s: ", location);
 
-	str_vprintfa(str, fmt, args)
+	str_vprintfa(str, fmt, args);
 
 	log_func("%s", str_c(str));
 }