From 3e11c26bcb99479c8bea9fab9acc71878666f278 Mon Sep 17 00:00:00 2001 From: Philip Hazel Date: Wed, 12 Jan 2005 12:51:54 +0000 Subject: [PATCH] Fix compiler warnings in acl.c for bitmaps specified as ~something in unsigned ints. --- doc/doc-txt/ChangeLog | 6 +++++- src/src/acl.c | 17 ++++++++++++++++- src/src/macros.h | 15 ++++++--------- 3 files changed, 27 insertions(+), 11 deletions(-) diff --git a/doc/doc-txt/ChangeLog b/doc/doc-txt/ChangeLog index d878174e0..ea2685f10 100644 --- a/doc/doc-txt/ChangeLog +++ b/doc/doc-txt/ChangeLog @@ -1,4 +1,4 @@ -$Cambridge: exim/doc/doc-txt/ChangeLog,v 1.66 2005/01/12 12:17:41 ph10 Exp $ +$Cambridge: exim/doc/doc-txt/ChangeLog,v 1.67 2005/01/12 12:51:54 ph10 Exp $ Change log file for Exim from version 4.21 ------------------------------------------- @@ -300,6 +300,10 @@ Exim version 4.50 68. The host_aton() function was not handling scoped IPv6 addresses (those with, for example, "%eth0" on the end) correctly. +69. Fixed some compiler warnings in acl.c for the bitmaps specified with + negated items (that is, ~something) in unsigned ints. Some compilers + apparently mutter when there is no cast. + Exim version 4.43 ----------------- diff --git a/src/src/acl.c b/src/src/acl.c index 843a9ad26..dc3951221 100644 --- a/src/src/acl.c +++ b/src/src/acl.c @@ -1,4 +1,4 @@ -/* $Cambridge: exim/src/src/acl.c,v 1.13 2005/01/12 12:24:13 ph10 Exp $ */ +/* $Cambridge: exim/src/src/acl.c,v 1.14 2005/01/12 12:51:55 ph10 Exp $ */ /************************************************* * Exim - an Internet mail transport agent * @@ -216,6 +216,7 @@ each condition, there's a bitmap of dis-allowed times. */ static unsigned int cond_forbids[] = { 0, /* acl */ + (1<