diff src/dnsbl.cpp @ 244:ef97c7cd4a6e stable-6-0-27

const correctness fixes from new gcc, libresolv.a moved to glibc-static on newer distributions
author Carl Byington <carl@five-ten-sg.com>
date Mon, 15 Aug 2011 21:08:11 -0700
parents d8ee4c97b9ab
children 8b0f16abee53
line wrap: on
line diff
--- a/src/dnsbl.cpp	Fri Nov 19 13:04:47 2010 -0800
+++ b/src/dnsbl.cpp	Mon Aug 15 21:08:11 2011 -0700
@@ -673,7 +673,7 @@
                 if (client_name && !helo_uribl) {
                     client_uribl = check_uribl(*this, hosts_uribl, client_name, host_uribl);
                     if (mailaddr && !client_uribl) {
-                        char *f = strchr(mailaddr, '@');
+                        const char *f = strchr(mailaddr, '@');
                         if (f) from_uribl = check_uribl(*this, hosts_uribl, f+1, host_uribl);
                     }
                 }
@@ -1553,7 +1553,7 @@
     bool stress  = false;
     bool setconn = false;
     bool setreso = false;
-    const char *email = NULL;
+    char *email = NULL;
     int c;
     const char *args = "b:r:p:t:e:d:chs";
     extern char *optarg;