Signed-off-by: Masatake YAMATO <yamato@redhat.com>
{
struct file *file;
+ assert(class);
file = xcalloc(1, class->size);
+ file->class = class;
+
file->proc = proc;
INIT_LIST_HEAD(&file->files);
static void file_set_path(struct file *file, struct stat *sb, const char *name, int association)
{
- const struct file_class *class = stat2class(sb);
-
- assert(class);
-
- file->class = class;
file->association = association;
file->name = xstrdup(name);
file->stat = *sb;