diff options
| author | Alexander Barton <alex@barton.de> | 2012-11-12 22:39:57 +0100 |
|---|---|---|
| committer | Alexander Barton <alex@barton.de> | 2012-11-12 22:39:57 +0100 |
| commit | 44926b7f9ff031c37be48b33c314e47e2f84ff9f (patch) | |
| tree | 5b82319447d2626b9f5d9cd222ce902e338ae684 /src/tool | |
| parent | d11a700589b2abab71b67ffb81f17f38936a169c (diff) | |
| download | ngircd-44926b7f9ff031c37be48b33c314e47e2f84ff9f.tar.gz ngircd-44926b7f9ff031c37be48b33c314e47e2f84ff9f.zip | |
Add a few casts, fix compiler warnings on NetBSD 5
This fixes a few warnings of this type: XXX.c: In function 'AAA': XXX.c:YY: warning: array subscription has type 'char' Tested on NetBSD 5.0.2 with gcc 4.1.3.
Diffstat (limited to 'src/tool')
| -rw-r--r-- | src/tool/tool.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/tool/tool.c b/src/tool/tool.c index eb6c131e..1bb3ebe6 100644 --- a/src/tool/tool.c +++ b/src/tool/tool.c @@ -84,7 +84,7 @@ ngt_UpperStr(char *String) ptr = String; while(*ptr) { - *ptr = toupper(*ptr); + *ptr = toupper((int)*ptr); ptr++; } return String; @@ -103,7 +103,7 @@ ngt_LowerStr(char *String) ptr = String; while(*ptr) { - *ptr = tolower(*ptr); + *ptr = tolower((int)*ptr); ptr++; } return String; |