misc.c: Coding style cleanup and code simplification.
misc.c: Coding style cleanup and code simplification.

Signed-off-by: Joachim Nilsson <583c295fd7602c168ad814279bbc3894ba65f5d6@gmail.com>

vincentbernat/netcalc,vincentbernat/netcalc,sbadia/netcalc,troglobit/sipcalc,troglobit/sipcalc,sbadia/netcalc,troglobit/netcalc,troglobit/netcalc