From c7c28e7fa2bc978212afdf86c3ea7878ac7b437d Mon Sep 17 00:00:00 2001 From: zimoch Date: Mon, 8 Oct 2012 12:32:44 +0000 Subject: [PATCH] compiler warning removed --- src/StreamBusInterface.cc | 2 +- src/StreamProtocol.cc | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/StreamBusInterface.cc b/src/StreamBusInterface.cc index c3fe97c..5b137fc 100644 --- a/src/StreamBusInterface.cc +++ b/src/StreamBusInterface.cc @@ -66,7 +66,7 @@ find(Client* client, const char* busname, int addr, const char* param) { StreamBusInterfaceRegistrarBase* r; 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); if (bus) return bus; diff --git a/src/StreamProtocol.cc b/src/StreamProtocol.cc index 40367da..9c4c821 100644 --- a/src/StreamProtocol.cc +++ b/src/StreamProtocol.cc @@ -1037,7 +1037,7 @@ compileNumber(unsigned long& number, const char*& source, unsigned long max) "Garbage after numeric value: %s\n", buffer()); return false; } - if (n < 0 || n > max) + if (n > max) { debug("StreamProtocolParser::Protocol::compileNumber: %s\n", buffer.expand()());