comparison src/sm-archive.h @ 19:b24369330483 stable-1-0-7

Fedora 9 compile and const correctness.
author Carl Byington <carl@five-ten-sg.com>
date Thu, 12 Jun 2008 18:17:33 -0700
parents 75e1a9bcbc2e
children
comparison
equal deleted inserted replaced
18:e1a028daceb9 19:b24369330483
6 6
7 */ 7 */
8 #ifndef smarchive_include 8 #ifndef smarchive_include
9 #define smarchive_include 9 #define smarchive_include
10 10
11 #include "context.h"
12
13 extern int debug_syslog; 11 extern int debug_syslog;
14 12
15 //////////////////////////////////////////////// 13 ////////////////////////////////////////////////
16 // mail filter private data, held for us by sendmail 14 // mail filter private data, held for us by sendmail
17 // 15 //
18 struct mlfiPriv 16 struct mlfiPriv
19 { 17 {
20 // connection specific data 18 // connection specific data
21 CONFIG *pc; // global filtering configuration 19 CONFIG *pc; // global filtering configuration
22 // message specific data 20 // message specific data
23 char *mailaddr; // envelope from value 21 const char *mailaddr; // envelope from value
24 char *queueid; // sendmail queue id 22 const char *queueid; // sendmail queue id
25 string_set targets; // targets to add at eom, strings are owned by the config 23 string_set targets; // targets to add at eom, strings are owned by the config
26 string_set removal; // targets to remove at eom, strings are owned here 24 string_set removal; // targets to remove at eom, strings are owned here
27 mlfiPriv(); 25 mlfiPriv();
28 ~mlfiPriv(); 26 ~mlfiPriv();
29 void reset(bool final = false); // for a new message 27 void reset(bool final = false); // for a new message
30 }; 28 };
31 29
32 void my_syslog(mlfiPriv *priv, char *text); 30 void my_syslog(mlfiPriv *priv, const char *text);
33 void my_syslog(char *text); 31 void my_syslog(const char *text);
34 32
35 #endif 33 #endif