post: rename devname to postdev

devname() is a stdlib.h function in OpenBSD, causing compile-time
errors.  Reported by peters@schwertfisch.de.