From: Alex Rousskov Date: Mon, 20 Feb 2017 17:41:41 +0000 (-0700) Subject: Fixed compilation and type conversion errors in r15057. X-Git-Tag: M-staged-PR71~255 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3d452cb16086be5499ef3764c17bf02866428838;p=thirdparty%2Fsquid.git Fixed compilation and type conversion errors in r15057. --- diff --git a/src/MessageBucket.h b/src/MessageBucket.h index b10129ccfe..564d6daeea 100644 --- a/src/MessageBucket.h +++ b/src/MessageBucket.h @@ -29,7 +29,7 @@ public: /* BandwidthBucket API */ virtual int quota() override; virtual void scheduleWrite(Comm::IoCallback *state) override; - virtual void reduceBucket(int len); + virtual void reduceBucket(int len) override; private: MessageDelayPool::Pointer theAggregate; diff --git a/src/client_db.cc b/src/client_db.cc index bde5da619e..3ff5a5690e 100644 --- a/src/client_db.cc +++ b/src/client_db.cc @@ -276,7 +276,7 @@ clientdbDump(StoreEntry * sentry) hash_first(client_table); while (hash_link *hash = hash_next(client_table)) { - const ClientInfo *c = reinterpret_cast(hash); + const ClientInfo *c = static_cast(hash); storeAppendPrintf(sentry, "Address: %s\n", hashKeyStr(hash)); if ( (name = fqdncache_gethostbyaddr(c->addr, 0)) ) { storeAppendPrintf(sentry, "Name: %s\n", name);