X-Git-Url: http://git.tuebingen.mpg.de/?p=paraslash.git;a=blobdiff_plain;f=fsck.c;h=ee7f4ee260df9ada41fb06f072d41d8adca200cc;hp=a40ff37950626207e9c3575bfc1044792671b347;hb=f41688f647116d0a17513cc86c60cc9729da6502;hpb=c73d23911d78ed10179c12ef8f79a3fcf3bbcdaf diff --git a/fsck.c b/fsck.c index a40ff379..ee7f4ee2 100644 --- a/fsck.c +++ b/fsck.c @@ -1,5 +1,5 @@ /* - * Copyright (C) 1997-2007 Andre Noll + * Copyright (C) 1997-2008 Andre Noll * * Licensed under the GPL v2. For licencing details see COPYING. */ @@ -474,7 +474,7 @@ static int dummy_compare(const struct osl_object *obj1, const struct osl_object static unsigned files_pruned; -int prune_disk_storage_file(const char *path, const void *private_data) +int prune_disk_storage_file(const char *path, void *private_data) { HASH_TYPE hash[HASH_SIZE]; unsigned flags = *(unsigned *)private_data; @@ -534,7 +534,8 @@ static int prune_disk_storage_files(struct osl_table *t) PARA_INFO_LOG("looking for unreferenced disk storage files\n"); FOR_EACH_DISK_STORAGE_COLUMN(i, t, cd) { char *dirname = column_filename(t, i); - ret = for_each_file_in_dir(dirname, prune_disk_storage_file, &t->desc->flags); + ret = for_each_file_in_dir(dirname, prune_disk_storage_file, + (unsigned *)&t->desc->flags); free(dirname); } if (files_pruned) @@ -970,7 +971,7 @@ out: para_strerror(-ret) ); if (conf.loglevel_arg > 1) - PARA_EMERG_LOG("re-run with \"--logelvel %d\" to increase verbosity\n", + PARA_EMERG_LOG("re-run with \"--loglevel %d\" to increase verbosity\n", conf.loglevel_arg - 1); } else PARA_NOTICE_LOG("success\n");