- add option to select replicated server at random (instead of ping response time) (bz 227604). - fix incorrect cast in directory cleanup routines (bz 231864).
14 lines
421 B
Diff
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;
|
|
|