calc_server: -pedantic, formatting cleanup

The -pedantic compile option has been enabled for
the calc_server.  Various minor code changes were
required to get it to compile without an error.