]> arthur.barton.de Git - ngircd-alex.git/blobdiff - src/tool/tool.c
Fix some compiler warnings of Apple Xcode/Clang
[ngircd-alex.git] / src / tool / tool.c
index b00e235eb739039f8d6d66a519689cb7d299308e..35c1ee67253302831e90314ac2c9c8ce02f5e82a 100644 (file)
@@ -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;