]> granicus.if.org Git - pdns/commitdiff
Fix warning: types may not be defined in a for-range-declaration
authorChristian Hofstaedtler <christian.hofstaedtler@deduktiva.com>
Fri, 2 Sep 2016 19:52:36 +0000 (21:52 +0200)
committerChristian Hofstaedtler <christian.hofstaedtler@deduktiva.com>
Fri, 2 Sep 2016 19:52:38 +0000 (21:52 +0200)
As emitted by gcc 6.2.0 20160830 (Debian 6.2.0-2)

pdns/pdnsutil.cc
pdns/tcpreceiver.cc

index ac8555081d98f4627fd2b1cf5babe5c462c61179..f26891570ba435a71d85718e475a22dd9248b764 100644 (file)
@@ -2789,7 +2789,7 @@ loadMainConfig(g_vm["config-dir"].as<string>());
      std::vector<struct TSIGKey> keys;
      UeberBackend B("default");
      if (B.getTSIGKeys(keys)) {
-        for(const struct TSIGKey &key :  keys) {
+        for(const TSIGKey &key :  keys) {
            cout << key.name.toString() << " " << key.algorithm.toString() << " " << key.key << endl;
         }
      }
index c18c1f75a9581d67983f4a41dd542cbc9581115f..5ae781db17074f330f4daec12a48c8d71f14d85a 100644 (file)
@@ -1280,7 +1280,7 @@ void TCPNameserver::thread()
         continue;
 
       int sock=-1;
-      for(const struct pollfd& pfd :  d_prfds) {
+      for(const pollfd& pfd :  d_prfds) {
         if(pfd.revents == POLLIN) {
           sock = pfd.fd;
           addrlen=sizeof(remote);