summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMukund Sivaraman <muks@banu.com>2010-01-25 21:36:18 +0530
committerMukund Sivaraman <muks@banu.com>2010-01-25 21:36:18 +0530
commit2d85a69e4937eb19800f4336362a3f1147314875 (patch)
tree4c2df51cfd923b6db6aa8f0cd88618bf22b667d9
parent0697a9047d6de3640416df6c76ec00397a571aa1 (diff)
downloadtinyproxy-2d85a69e4937eb19800f4336362a3f1147314875.tar.gz
tinyproxy-2d85a69e4937eb19800f4336362a3f1147314875.zip
Remove unnecessary cast to (void **)
Fixes a compiler warning about dereferencing type-punned pointers.
-rw-r--r--src/connect-ports.c2
1 files changed, 1 insertions, 1 deletions
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));
}
/*