autofs/autofs-5.0.1-bad-cast.patch
ikent a2755999a3 - drop "DEFAULT_" prefix from configuration names.
- add option to select replicated server at random (instead of ping
    response time) (bz 227604).
- fix incorrect cast in directory cleanup routines (bz 231864).
2007-03-16 07:26:19 +00:00

14 lines
421 B
Diff

diff --git a/daemon/automount.c b/daemon/automount.c
index 938ee1b..37e040b 100644
--- a/daemon/automount.c
+++ b/daemon/automount.c
@@ -276,7 +276,7 @@ static int walk_tree(const char *base, int (*fn) (const char *file,
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;