X-Git-Url: https://arthur.barton.de/cgi-bin/gitweb.cgi?p=ngircd-alex.git;a=blobdiff_plain;f=src%2Ftool%2Ftool.c;h=35c1ee67253302831e90314ac2c9c8ce02f5e82a;hp=b00e235eb739039f8d6d66a519689cb7d299308e;hb=c8162a80beba80f3b1d04fdba8e74bf5366c47f7;hpb=e8e04b4c8fd63d075ffa6b85327c4b90d7005051 diff --git a/src/tool/tool.c b/src/tool/tool.c index b00e235e..35c1ee67 100644 --- a/src/tool/tool.c +++ b/src/tool/tool.c @@ -1,6 +1,6 @@ /* * ngIRCd -- The Next Generation IRC Daemon - * Copyright (c)2001-2014 Alexander Barton (alex@barton.de) and Contributors. + * Copyright (c)2001-2018 Alexander Barton (alex@barton.de) and Contributors. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -82,7 +82,7 @@ ngt_UpperStr(char *String) ptr = String; while(*ptr) { - *ptr = toupper((int)*ptr); + *ptr = (char)toupper(*ptr); ptr++; } return String; @@ -101,7 +101,7 @@ ngt_LowerStr(char *String) ptr = String; while(*ptr) { - *ptr = tolower((int)*ptr); + *ptr = (char)tolower(*ptr); ptr++; } return String;