Warning fixes in sock-rma.