sbase

suckless unix tools
git clone git://git.2f30.org/sbase
Log | Files | Refs | README | LICENSE

commit 0f90528df7c739892c035536a519431a2a419cec
parent 09704afc2475794edcc35fc5bc7fae67bd1d4f78
Author: FRIGN <dev@frign.de>
Date:   Sun, 11 Jan 2015 20:29:27 +0100

Add proper casts and fix a small error

Diffstat:
Mtr.c | 8++++----
1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/tr.c b/tr.c @@ -26,7 +26,7 @@ static struct { { "digit", iswdigit }, { "graph", iswgraph }, { "lower", iswlower }, - { "print", iswlower }, + { "print", iswprint }, { "punct", iswpunct }, { "space", iswspace }, { "upper", iswupper }, @@ -227,7 +227,7 @@ read: goto write; } } - if (set1check && set1check(r)) { + if (set1check && set1check((wint_t)r)) { if (dflag && !cflag) goto read; if (sflag) { @@ -237,9 +237,9 @@ read: goto write; } if (set1check == iswupper && set2check == iswlower) - r = towlower(r); + r = towlower((wint_t)r); if (set1check == iswlower && set2check == iswupper) - r = towupper(r); + r = towupper((wint_t)r); } if (dflag && cflag) goto read;