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 --- kioslave/man/man2html.cpp | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) (limited to 'kioslave/man/man2html.cpp') diff --git a/kioslave/man/man2html.cpp b/kioslave/man/man2html.cpp index c08a51443..ed0b39dd4 100644 --- a/kioslave/man/man2html.cpp +++ b/kioslave/man/man2html.cpp @@ -713,10 +713,10 @@ static void add_links(char *c) /* search for (section) */ nr=0; idtest[0]=strstr(c+1,"://"); - idtest[1]=(char*)strchr(c+1,'@'); + idtest[1]=strchr(c+1,'@'); idtest[2]=strstr(c,"www."); idtest[3]=strstr(c,"ftp."); - idtest[4]=(char*)strchr(c+1,'('); + idtest[4]=strchr(c+1,'('); idtest[5]=strstr(c+1,".h>"); for (i=0; ic && (g-f)<12 && (isalnum(f[-1]) || f[-1]=='>' || ( f[-1] == ';' ) ) && isdigit(f[1]) && f[1]!='0' && ((g-f)<=2 || isalpha(f[2]))) @@ -937,10 +937,10 @@ static void add_links(char *c) } nr=0; if (idtest[0] && idtest[0]<=c) idtest[0]=strstr(c+1,"://"); - if (idtest[1] && idtest[1]<=c) idtest[1]=(char*)strchr(c+1,'@'); + if (idtest[1] && idtest[1]<=c) idtest[1]=strchr(c+1,'@'); if (idtest[2] && idtest[2]