diff 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
line wrap: on
line diff
--- a/svr-tcpfwd.c	Sat Aug 19 17:16:13 2017 +0200
+++ b/svr-tcpfwd.c	Sat Aug 19 22:39:53 2017 +0200
@@ -107,7 +107,7 @@
 	TRACE(("leave recv_msg_global_request"))
 }
 
-static int matchtcp(void* typedata1, void* typedata2) {
+static int matchtcp(const void* typedata1, const void* typedata2) {
 
 	const struct TCPListener *info1 = (struct TCPListener*)typedata1;
 	const struct TCPListener *info2 = (struct TCPListener*)typedata2;