diff options
Diffstat (limited to 'lib/libdisk/disklabel.c')
-rw-r--r-- | lib/libdisk/disklabel.c | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/lib/libdisk/disklabel.c b/lib/libdisk/disklabel.c index 96469ea..61bf500 100644 --- a/lib/libdisk/disklabel.c +++ b/lib/libdisk/disklabel.c @@ -16,17 +16,3 @@ __FBSDID("$FreeBSD$"); #include <sys/disklabel.h> #include "libdisk.h" -struct disklabel * -read_disklabel(int fd, daddr_t block, u_long sector_size) -{ - struct disklabel *dp; - - dp = (struct disklabel *) read_block(fd, block, sector_size); - if (dp->d_magic != DISKMAGIC) - return 0; - if (dp->d_magic2 != DISKMAGIC) - return 0; - if (dkcksum(dp) != 0) - return 0; - return dp; -} |