compiler warning removed

This commit is contained in:
zimoch
2012-10-08 12:32:44 +00:00
parent 79a17788f2
commit c7c28e7fa2
2 changed files with 2 additions and 2 deletions

View File

@ -66,7 +66,7 @@ find(Client* client, const char* busname, int addr, const char* param)
{ {
StreamBusInterfaceRegistrarBase* r; StreamBusInterfaceRegistrarBase* r;
StreamBusInterface* bus; StreamBusInterface* bus;
for (r = r->first; r; r = r->next) for (r = StreamBusInterfaceRegistrarBase::first; r; r = r->next)
{ {
bus = r->find(client, busname, addr, param); bus = r->find(client, busname, addr, param);
if (bus) return bus; if (bus) return bus;

View File

@ -1037,7 +1037,7 @@ compileNumber(unsigned long& number, const char*& source, unsigned long max)
"Garbage after numeric value: %s\n", buffer()); "Garbage after numeric value: %s\n", buffer());
return false; return false;
} }
if (n < 0 || n > max) if (n > max)
{ {
debug("StreamProtocolParser::Protocol::compileNumber: %s\n", debug("StreamProtocolParser::Protocol::compileNumber: %s\n",
buffer.expand()()); buffer.expand()());