Clean up processing of recvmsg args.

Small step to #428, where I need to use the same pattern.