This is an automated email from the git hooks/post-receive script. x2go pushed a commit to branch 3.6.x in repository nx-libs. commit 9dba2435ccc9cc5f92066de4e2e2be1d4585bc9f Author: Mihai Moldovan <ionic@ionic.de> Date: Sun Dec 24 17:59:35 2017 +0100 nxcomp/src/ChannelEndPoint.cpp: don't use C-style casting in C++ code... --- nxcomp/src/ChannelEndPoint.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/nxcomp/src/ChannelEndPoint.cpp b/nxcomp/src/ChannelEndPoint.cpp index fb8549f..a1d9608 100644 --- a/nxcomp/src/ChannelEndPoint.cpp +++ b/nxcomp/src/ChannelEndPoint.cpp @@ -103,11 +103,11 @@ ChannelEndPoint::setSpec(const char *hostName, long port) { if (hostName && strlen(hostName) && port >= 1) { length = snprintf(NULL, 0, "tcp:%s:%ld", hostName, port); - spec_ = (char *)calloc(length + 1, sizeof(char)); + spec_ = static_cast<char *>(calloc(length + 1, sizeof(char))); snprintf(spec_, length+1, "tcp:%s:%ld", hostName, port); isTCP_ = true; } - else setSpec((char*)NULL); + else setSpec(static_cast<char*>(NULL)); } bool @@ -133,7 +133,7 @@ ChannelEndPoint::getSpec(char **socketUri) const { if (length > 0) { - newSocketUri = (char *)calloc(length + 1, sizeof(char)); + newSocketUri = static_cast<char *>(calloc(length + 1, sizeof(char))); if (isUnixSocket()) snprintf(newSocketUri, length+1, "unix:%s", unixPath); else -- Alioth's /home/x2go-admin/maintenancescripts/git/hooks/post-receive-email on /srv/git/code.x2go.org/nx-libs.git