]> arthur.barton.de Git - ngircd.git/blobdiff - src/tool/tool.c
Fix some compiler warnings of Apple Xcode/Clang
[ngircd.git] / src / tool / tool.c
index 8fe6e05e9fa74d84b7675a29b7d9b3d0a3cba058..35c1ee67253302831e90314ac2c9c8ce02f5e82a 100644 (file)
@@ -1,6 +1,6 @@
 /*
  * ngIRCd -- The Next Generation IRC Daemon
- * Copyright (c)2001-2010 Alexander Barton (alex@barton.de)
+ * 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;