if(pleft>1)
data.hostmaster=attodot(parts[1]); // ahu@ds9a.nl -> ahu.ds9a.nl, piet.puk@ds9a.nl -> piet\.puk.ds9a.nl
- data.serial = pleft > 2 ? strtoui(parts[2].c_str(), NULL, 10) : 0;
+ data.serial = pleft > 2 ? pdns_strtoui(parts[2].c_str(), NULL, 10) : 0;
if (data.serial == UINT_MAX && errno == ERANGE) throw PDNSException("serial number too large in '"+parts[2]+"'");
data.refresh = pleft > 3 ? atoi(parts[3].c_str())
#endif
}
-uint32_t strtoui(const char *nptr, char **endptr, int base)
+uint32_t pdns_strtoui(const char *nptr, char **endptr, int base)
{
unsigned long val = strtoul(nptr, endptr, base);
if (val > UINT_MAX) {
uint16_t getShort(const char *p);
uint32_t getLong(const unsigned char *p);
uint32_t getLong(const char *p);
-uint32_t strtoui(const char *nptr, char **endptr, int base);
+uint32_t pdns_strtoui(const char *nptr, char **endptr, int base);
int logFacilityToLOG(unsigned int facility);
throw RecordTextException("expected digits at position "+lexical_cast<string>(d_pos)+" in '"+d_string+"'");
char *endptr;
- unsigned long ret=strtoui(d_string.c_str() + d_pos, &endptr, 10);
+ unsigned long ret=pdns_strtoui(d_string.c_str() + d_pos, &endptr, 10);
if (ret == UINT_MAX && errno == ERANGE) throw RecordTextException("serial number too large in '"+d_string+"'");
val=ret;