X-Git-Url: http://mj.ucw.cz/gitweb/?a=blobdiff_plain;f=ucw%2Ftbf.c;h=62b0c41cd51f49a66c7289405f8d1ede7b2da6a7;hb=c8ffd6e3b4fc8fd6437c04282c357b2dc290bbbd;hp=b0bcbc16e0bca76a27cce655083bef7b56a52411;hpb=fa7aa6d9457616ce28f97c83eaa616d0ff276870;p=libucw.git diff --git a/ucw/tbf.c b/ucw/tbf.c index b0bcbc16..62b0c41c 100644 --- a/ucw/tbf.c +++ b/ucw/tbf.c @@ -29,7 +29,7 @@ tbf_limit(struct token_bucket_filter *f, timestamp_t now) b = MIN(b, f->burst); if (b >= 1) { - uns dropped = f->drop_count; + uint dropped = f->drop_count; f->bucket = b - 1; f->drop_count = 0; return dropped; @@ -51,7 +51,7 @@ int main(void) for (timestamp_t now = 0; now < 3000; now += 77) { int res = tbf_limit(&t, now); - msg(L_DEBUG, "t=%u result=%d bucket=%f", (uns) now, res, t.bucket); + msg(L_DEBUG, "t=%u result=%d bucket=%f", (uint) now, res, t.bucket); } return 0; }