pv: use int index for looking up flag index

- some functions used for check may return negative on error

(cherry picked from commit 30359b3cfce2ce909153e06b1954778c4eababa7)
ctl: removed not needed extra paranthesis

(cherry picked from commit efda774f6391f1e909a9967898c64fb25f53eeba)
tls: removed unsigned int comparison with <0

(cherry picked from commit 7d6dc390bac2b49615444bcbad74cd39f3c82302)
pike: memset of address print buffer with proper size

(cherry picked from commit d54eb083f59fb55ccbc79e49b5b3e05426bd3795)
ratelimit: signed check for pipe number in rpc_set_queue()

- rpc can reand signed value

(cherry picked from commit ed034d4d9096d8c77269828c8efdafb26eac5372)
maxforwards: use standard format instead of GNU old-style field designator

(cherry picked from commit cd04947b0ccb1c861274483f458bfc7f4329accb)