sbase

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

commit cf714e6edb06c7af699dc6654fcb5a94d2d22c6c
parent 1f3345b9e6645227796cb50a0b85d7045cc7cbc0
Author: Hiltjo Posthuma <hiltjo@codemadness.org>
Date:   Sat, 10 Jan 2015 17:38:28 +0100

tr: fix signed/unsigned warnings

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

diff --git a/tr.c b/tr.c @@ -52,8 +52,7 @@ rangelen(struct range r) static size_t setlen(struct range *set, size_t setranges) { - int i; - size_t len = 0; + size_t len = 0, i; for (i = 0; i < setranges; i++) len += rangelen(set[i]); @@ -175,8 +174,7 @@ int main(int argc, char *argv[]) { Rune r = 0, lastrune = 0; - int i, m; - size_t off1, off2; + size_t off1, off2, m, i; ARGBEGIN { case 'c':