]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
The hex/dec I/O format operators is in the std namespace
authorhno <>
Sun, 29 Apr 2007 23:35:52 +0000 (23:35 +0000)
committerhno <>
Sun, 29 Apr 2007 23:35:52 +0000 (23:35 +0000)
src/forward.cc
src/icmp.cc
src/unlinkd.cc

index f85de0e47e4a5542f18ea78d1d3f460487261703..a80de6bec181b984e19a08ae1566cfa74f2ade7f 100644 (file)
@@ -1,6 +1,6 @@
 
 /*
- * $Id: forward.cc,v 1.161 2007/04/28 22:26:37 hno Exp $
+ * $Id: forward.cc,v 1.162 2007/04/29 17:35:52 hno Exp $
  *
  * DEBUG: section 17    Request Forwarding
  * AUTHOR: Duane Wessels
@@ -873,7 +873,7 @@ FwdState::connectStart()
 
             if (setsockopt(fd, SOL_IP, IP_TPROXY, &itp, sizeof(itp)) == -1) {
                 debugs(20, 1, "tproxy ip=" << inet_ntoa(itp.v.addr.faddr) <<
-                       ",0x" << hex << itp.v.addr.faddr.s_addr << dec <<
+                       ",0x" << std::hex << itp.v.addr.faddr.s_addr << std::dec <<
                        ",port=" << itp.v.addr.fport << " ERROR ASSIGN");
 
                 request->flags.tproxy = 0;
@@ -882,8 +882,8 @@ FwdState::connectStart()
                 itp.v.flags = ITP_CONNECT;
 
                 if (setsockopt(fd, SOL_IP, IP_TPROXY, &itp, sizeof(itp)) == -1) {
-                    debugs(20, 1, "tproxy ip=" << hex <<
-                           itp.v.addr.faddr.s_addr << dec << ",port=" <<
+                    debugs(20, 1, "tproxy ip=" << std::hex <<
+                           itp.v.addr.faddr.s_addr << std::dec << ",port=" <<
                            itp.v.addr.fport << " ERROR CONNECT");
 
                     request->flags.tproxy = 0;
index f4d31de57fccfbb4ff3319225b0f8aa93f4a0e37..b17eb56db7ce6a0384271bd997b43b3a328072d1 100644 (file)
@@ -1,6 +1,6 @@
 
 /*
- * $Id: icmp.cc,v 1.91 2007/04/28 22:26:37 hno Exp $
+ * $Id: icmp.cc,v 1.92 2007/04/29 17:35:52 hno Exp $
  *
  * DEBUG: section 37    ICMP Routines
  * AUTHOR: Duane Wessels
@@ -268,7 +268,7 @@ icmpOpen(void)
 
 #ifdef _SQUID_MSWIN_
 
-    debugs(37, 4, "Pinger handle: 0x" << hex << (unsigned)hIpc << dec << ", PID: " << pid);
+    debugs(37, 4, "Pinger handle: 0x" << std::hex << (unsigned)hIpc << std::dec << ", PID: " << pid);
 
 #endif
 #endif
index 9b3ec19a051d5aa35b1efd3891c9092a6e8edc11..cd36c8a28d58484d2985326ecb44c3963ffb0fa1 100644 (file)
@@ -1,6 +1,6 @@
 
 /*
- * $Id: unlinkd.cc,v 1.62 2007/04/28 22:26:38 hno Exp $
+ * $Id: unlinkd.cc,v 1.63 2007/04/29 17:35:52 hno Exp $
  *
  * DEBUG: section 2     Unlink Daemon
  * AUTHOR: Duane Wessels
@@ -244,7 +244,7 @@ IPC_FIFO,
 
 #ifdef _SQUID_MSWIN_
 
-    debugs(2, 4, "Unlinkd handle: 0x" << hex << (unsigned)hIpc << dec << ", PID: " << pid);
+    debugs(2, 4, "Unlinkd handle: 0x" << std::hex << (unsigned)hIpc << std::dec << ", PID: " << pid);
 
 #endif