[Mimedefang] MIMEDefang 2.57 is Released

David F. Skoll dfs at roaringpenguin.com
Tue Jun 20 11:56:45 EDT 2006


Roedel, Mark wrote:

> mimedefang-multiplexor.c:4570: syntax error before `*'
> mimedefang-multiplexor.c:4571: `b' undeclared (first use in this
> function)

Doh doh DOH!!! Silly GCC lets me get away with way too much.

This simple patch should fix it.

Regards,

David.

--- MIMEDefang/trunk/mimedefang-multiplexor.c	2006/05/04 14:20:25	11343
+++ MIMEDefang/trunk/mimedefang-multiplexor.c	2006/06/20 15:55:22	11648
@@ -4566,8 +4566,9 @@
     start = end - hours + 1;
 
     for (i = start; i <= end; i++) {
+	HistoryBucket *b;
 	bucket = i % HISTORY_HOURS;
-	HistoryBucket *b = &(hourly_history[cmd][bucket]);
+	b = &(hourly_history[cmd][bucket]);
 	if (b->elapsed == i) {
 	    if (min_sec == -1 || b->first < min_sec) min_sec = b->first;
 	    if (b->last > max_sec) max_sec = b->last;



More information about the MIMEDefang mailing list