tool_getparam.c: Fixed compilation warnings

There is an implicit conversion from "unsigned long" to "long"