]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Fixed compilation and type conversion errors in r15057.
authorAlex Rousskov <rousskov@measurement-factory.com>
Mon, 20 Feb 2017 17:41:41 +0000 (10:41 -0700)
committerAlex Rousskov <rousskov@measurement-factory.com>
Mon, 20 Feb 2017 17:41:41 +0000 (10:41 -0700)
src/MessageBucket.h
src/client_db.cc

index b10129ccfed4320294ecfb9b0064c213f223bec1..564d6daeea32e09dc6ad407991b9276580e0cf93 100644 (file)
@@ -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;
index bde5da619ec216c4d9aefca7d4bbe8842ffe357e..3ff5a5690e6fb6a77d9d97fcf2c2c3b5d291bd3a 100644 (file)
@@ -276,7 +276,7 @@ clientdbDump(StoreEntry * sentry)
     hash_first(client_table);
 
     while (hash_link *hash = hash_next(client_table)) {
-        const ClientInfo *c = reinterpret_cast<const ClientInfo *>(hash);
+        const ClientInfo *c = static_cast<const ClientInfo *>(hash);
         storeAppendPrintf(sentry, "Address: %s\n", hashKeyStr(hash));
         if ( (name = fqdncache_gethostbyaddr(c->addr, 0)) ) {
             storeAppendPrintf(sentry, "Name:    %s\n", name);