Properly handle signed return values, fixing a warning.
Fix a warning in generic server, in what I think is the correct way