summaryrefslogtreecommitdiff
path: root/libparted/filesys.c
diff options
context:
space:
mode:
authorDebarshi Ray <rishi@gnu.org>2007-11-02 17:23:32 +0530
committerDebarshi Ray <debray@libra.(none)>2007-11-02 17:23:32 +0530
commit6c3aaa05b5dc3a40bfa445fc1d45400353cc3aee (patch)
tree8721a61b6a4105d9da2b84032ecccabb8acce524 /libparted/filesys.c
parent5225dc5ac5eaea396bd0ca22383e2ba76cd71c0f (diff)
downloadparted-6c3aaa05b5dc3a40bfa445fc1d45400353cc3aee.tar.gz
Removing unnecessary type-casts and eerie comments.
Diffstat (limited to 'libparted/filesys.c')
-rw-r--r--libparted/filesys.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/libparted/filesys.c b/libparted/filesys.c
index 986f0ca..38d1f75 100644
--- a/libparted/filesys.c
+++ b/libparted/filesys.c
@@ -49,9 +49,8 @@ ped_file_system_type_register (PedFileSystemType* fs_type)
PED_ASSERT (fs_type->ops != NULL, return);
PED_ASSERT (fs_type->name != NULL, return);
- /* pretend that "next" isn't part of the struct :-) */
- ((struct _PedFileSystemType*) fs_type)->next = fs_types;
- fs_types = (struct _PedFileSystemType*) fs_type;
+ fs_type->next = fs_types;
+ fs_types = fs_type;
}
void