From 316198a0c3953fe34bbf4a3a1ce24f604d0a55e5 Mon Sep 17 00:00:00 2001 From: Pavel Labath Date: Thu, 10 Dec 2009 23:42:22 +0100 Subject: [PATCH] Explicitly cast NULL to the specific type for compilers that (for some unknown reason) require it --- src/libtcp-portmon.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/libtcp-portmon.cc b/src/libtcp-portmon.cc index bc5e1e19..537ebfbd 100644 --- a/src/libtcp-portmon.cc +++ b/src/libtcp-portmon.cc @@ -115,11 +115,11 @@ struct _tcp_port_monitor_t { std::vector p_peek; _tcp_port_monitor_t(int max_connections) - : hash(), p_peek(max_connections, NULL) + : hash(), p_peek(max_connections, static_cast(NULL)) { } _tcp_port_monitor_t(const _tcp_port_monitor_t &other) - : hash(other.hash), p_peek(other.p_peek.size(), NULL) + : hash(other.hash), p_peek(other.p_peek.size(), static_cast(NULL)) { // we must rebuild the peek table because the pointers are no longer valid rebuild_peek_table();