]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Marked comm_reset_close() parameter as const because it is.
authorAlex Rousskov <rousskov@measurement-factory.com>
Tue, 6 Sep 2011 17:56:10 +0000 (11:56 -0600)
committerAlex Rousskov <rousskov@measurement-factory.com>
Tue, 6 Sep 2011 17:56:10 +0000 (11:56 -0600)
This allows const methods to call this Comm function with their conn member.

src/comm.cc
src/comm.h

index 4b0938510bf6ad3deb7d3e0504dd2ad0961624aa..5d40c6f3f5f2434c8ba57800edd699791343c48b 100644 (file)
@@ -1021,7 +1021,7 @@ comm_lingering_close(int fd)
  * closed, TCP generates a RESET
  */
 void
-comm_reset_close(Comm::ConnectionPointer &conn)
+comm_reset_close(const Comm::ConnectionPointer &conn)
 {
     struct linger L;
     L.l_onoff = 1;
index c4355e59756b5d8591bc48d928797978d96f7dd0..98c58e403b3543dc8e0dd8c6eb2e3b1c18f60217 100644 (file)
@@ -19,7 +19,7 @@ SQUIDCEXTERN void commSetTcpKeepalive(int fd, int idle, int interval, int timeou
 extern void _comm_close(int fd, char const *file, int line);
 #define comm_close(x) (_comm_close((x), __FILE__, __LINE__))
 SQUIDCEXTERN void old_comm_reset_close(int fd);
-SQUIDCEXTERN void comm_reset_close(Comm::ConnectionPointer &conn);
+SQUIDCEXTERN void comm_reset_close(const Comm::ConnectionPointer &conn);
 #if LINGERING_CLOSE
 SQUIDCEXTERN void comm_lingering_close(int fd);
 #endif