Fix parameter types.

Fixes bug #60885 (Radius module causing Apache segmentation fault).
Quiet signedness warnings by using or casting to the correct types.