comparison svr-tcpfwd.c @ 1460:58a74cb829b8

Pointer parameter could be declared as pointing to const (callback)
author Francois Perrad <francois.perrad@gadz.org>
date Sat, 19 Aug 2017 22:39:53 +0200
parents 8747c2b19152
children ad637c9e0f6f
comparison
equal deleted inserted replaced
1459:06d52bcb8094 1460:58a74cb829b8
105 m_free(reqname); 105 m_free(reqname);
106 106
107 TRACE(("leave recv_msg_global_request")) 107 TRACE(("leave recv_msg_global_request"))
108 } 108 }
109 109
110 static int matchtcp(void* typedata1, void* typedata2) { 110 static int matchtcp(const void* typedata1, const void* typedata2) {
111 111
112 const struct TCPListener *info1 = (struct TCPListener*)typedata1; 112 const struct TCPListener *info1 = (struct TCPListener*)typedata1;
113 const struct TCPListener *info2 = (struct TCPListener*)typedata2; 113 const struct TCPListener *info2 = (struct TCPListener*)typedata2;
114 114
115 return (info1->listenport == info2->listenport) 115 return (info1->listenport == info2->listenport)