Changeset 995
- Timestamp:
- 03/25/07 20:04:42 (2 years ago)
- Files:
-
- trunk/pdns/pdns/backends/bind/zone2sql.cc (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/pdns/pdns/backends/bind/zone2sql.cc
r961 r995 40 40 #include "dnspacket.hh" 41 41 #include "zoneparser-tng.hh" 42 42 #include "dnsrecords.hh" 43 #include <boost/algorithm/string.hpp> 44 45 using namespace boost; 43 46 StatBag S; 44 47 … … 106 109 } 107 110 111 if(qtype == "MX" || qtype == "SRV") { 112 prio=atoi(content.c_str()); 113 114 string::size_type pos = content.find_first_not_of("0123456789"); 115 if(pos != string::npos) 116 erase_head(content, pos); 117 trim_left(content); 118 } 119 120 108 121 lastsoa_domain_id=dirty_hack_num; 109 122 … … 152 165 { 153 166 try { 167 reportAllTypes(); 154 168 #if __GNUC__ >= 3 155 169 ios_base::sync_with_stdio(false);