webdav: fix various warnings

Change-Id: I86289c09b3694e5c48dffeb2de571d99e2484bd3