--- autofs-5.0.1/daemon/automount.c.bad-cast	2007-03-12 16:29:23.000000000 +0000
+++ autofs-5.0.1/daemon/automount.c	2007-03-12 16:29:53.000000000 +0000
@@ -274,7 +274,7 @@
 
 static int rm_unwanted_fn(const char *file, const struct stat *st, int when, void *arg)
 {
-	dev_t dev = *(int *) arg;
+	dev_t dev = *(dev_t *) arg;
 	char buf[MAX_ERR_BUF];
 	struct stat newst;