remove "syntactic sugar"

This commit is contained in:
Marian Ohligs 2012-12-30 21:15:37 +01:00
parent a457b0fc40
commit f0ff5b2c86

View file

@ -269,11 +269,12 @@ static int initrd_open(fildes_t* file, const char* name)
dir_block_t* dir_block;
dirent_t* dirent;
kprintf("%p = %p", initrd_open, &initrd_open );
memset(new_node, 0x00, sizeof(vfs_node_t));
new_node->type = FS_FILE;
new_node->read = initrd_read;
new_node->write = initrd_write;
new_node->open = initrd_open;
new_node->read = &initrd_read;
new_node->write = &initrd_write;
new_node->open = &initrd_open;
spinlock_init(&new_node->lock);
/* create a entry for the new node in the directory block of current node */