From 2d85a69e4937eb19800f4336362a3f1147314875 Mon Sep 17 00:00:00 2001 From: Mukund Sivaraman Date: Mon, 25 Jan 2010 21:36:18 +0530 Subject: Remove unnecessary cast to (void **) Fixes a compiler warning about dereferencing type-punned pointers. --- src/connect-ports.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/connect-ports.c b/src/connect-ports.c index 011e98c..41b4e3d 100644 --- a/src/connect-ports.c +++ b/src/connect-ports.c @@ -38,7 +38,7 @@ void add_connect_port_allowed (int port, vector_t *connect_ports) log_message (LOG_INFO, "Adding Port [%d] to the list allowed by CONNECT", port); - vector_append (*connect_ports, (void **) &port, sizeof (port)); + vector_append (*connect_ports, &port, sizeof (port)); } /* -- cgit v1.2.3