Prepare old code

Fixed some warnings that were left over from when this code belonged to an echo server.