diff src/dccifd.h @ 214:82886d4dd71f stable-6-0-19

Fixes to compile on Fedora 9 and for const correctness.
author Carl Byington <carl@five-ten-sg.com>
date Tue, 10 Jun 2008 08:58:42 -0700
parents ff6d14d75b1e
children 5209e92b4885
line wrap: on
line diff
--- a/src/dccifd.h	Wed Apr 30 13:11:32 2008 -0700
+++ b/src/dccifd.h	Tue Jun 10 08:58:42 2008 -0700
@@ -25,13 +25,13 @@
 
 class DccInterface {
 public:
-	DccInterface(char *port_, mlfiPriv *priv_, int ip, char *helo_, char *from);
+    DccInterface(const char *port_, mlfiPriv *priv_, int ip, const char *helo_, const char *from);
 	~DccInterface();
 
-	void mlfi_envrcpt(SMFICTX *ctx, char *envrcpt, bool grey);
-	void mlfi_header(SMFICTX *ctx, char* headerf, char* headerv);
+    void mlfi_envrcpt(SMFICTX *ctx, const char *envrcpt, bool grey);
+    void mlfi_header(SMFICTX *ctx, const char *headerf, const char *headerv);
 	void mlfi_eoh();
-	void mlfi_body(u_char *bodyp, size_t bodylen);
+    void mlfi_body(const u_char *bodyp, size_t bodylen);
 	void mlfi_eom(bool &grey, int &bulk);
 
 private:
@@ -44,7 +44,7 @@
 	void output(string buffer);
 	void close_output();
 	void input();
-	char *getmacro(SMFICTX *ctx, char *macro, char *def);
+    const char *getmacro(SMFICTX *ctx, const char *macro, const char *def);
 
 public:
 	bool err;				// socket write error
@@ -56,12 +56,12 @@
 	int 	 ip4;		// ip4 address of smtp client
 
 	// strings owned by main dnsbl
-	char *helo; 		// client helo value
-	char *envfrom;		// envelope from value for this message
+    const char *helo;       // client helo value
+    const char *envfrom;    // envelope from value for this message
 
 	// Process handling variables
 	int    dccifd_socket;
-	char  *dccifd_port;
+    const char  *dccifd_port;
 	string dccifd_output;	// to dccifd socket
 	string dccifd_input;	// from dccifd socket
 };