From d54ab5595153b3dc57560077ff3551ffd4406b30 Mon Sep 17 00:00:00 2001 From: tpearson Date: Mon, 15 Aug 2011 21:36:27 +0000 Subject: Fix a number of issues in kdebase caused by C style casts This includes Bug #492 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdebase@1247425 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- ksmserver/legacy.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ksmserver/legacy.cpp') diff --git a/ksmserver/legacy.cpp b/ksmserver/legacy.cpp index 1a1cea765..186fdcf64 100644 --- a/ksmserver/legacy.cpp +++ b/ksmserver/legacy.cpp @@ -356,7 +356,7 @@ TQString KSMServer::windowWmClientMachine(WId w) hostnamebuf[sizeof(hostnamebuf)-1] = 0; if (result == hostnamebuf) result = "localhost"; - if(char *dot = (char*)strchr(hostnamebuf, '.')) { + if(char *dot = strchr(hostnamebuf, '.')) { *dot = '\0'; if(result == hostnamebuf) result = "localhost"; -- cgit v1.2.3