diff options
author | Kenneth R Westerback <krw@cvs.openbsd.org> | 2016-01-14 04:17:41 +0000 |
---|---|---|
committer | Kenneth R Westerback <krw@cvs.openbsd.org> | 2016-01-14 04:17:41 +0000 |
commit | 4679905bc346e6908560b358f73ab80745dc8d4b (patch) | |
tree | ae7178471e26268a5897994964af4c3537b300a7 /sbin | |
parent | 3eadcb568a672ae82c55fb9fa8ea4baa17f396bb (diff) |
Nuke 'HFS_name' field which was not referenced now other than setting
it and freeing it. Unhook hfs_misc.c from build since it now longer
contains anything being used.
Diffstat (limited to 'sbin')
-rw-r--r-- | sbin/pdisk/Makefile | 4 | ||||
-rw-r--r-- | sbin/pdisk/partition_map.c | 8 | ||||
-rw-r--r-- | sbin/pdisk/partition_map.h | 3 |
3 files changed, 4 insertions, 11 deletions
diff --git a/sbin/pdisk/Makefile b/sbin/pdisk/Makefile index 36c0b524768..e6c91c2e463 100644 --- a/sbin/pdisk/Makefile +++ b/sbin/pdisk/Makefile @@ -1,4 +1,4 @@ -# $Id: Makefile,v 1.15 2016/01/12 20:09:39 krw Exp $ +# $Id: Makefile,v 1.16 2016/01/14 04:17:40 krw Exp $ .if ${MACHINE} == "macppc" PROG= pdisk @@ -7,7 +7,7 @@ DPADD= ${LIBUTIL} CFLAGS+=-Wall SRCS= bitfield.c convert.c deblock_media.c dump.c \ - file_media.c hfs_misc.c io.c media.c partition_map.c \ + file_media.c io.c media.c partition_map.c \ pdisk.c validate.c .else diff --git a/sbin/pdisk/partition_map.c b/sbin/pdisk/partition_map.c index 0193f69d70f..162cb1c1023 100644 --- a/sbin/pdisk/partition_map.c +++ b/sbin/pdisk/partition_map.c @@ -1,4 +1,4 @@ -/* $OpenBSD: partition_map.c,v 1.16 2016/01/12 20:09:39 krw Exp $ */ +/* $OpenBSD: partition_map.c,v 1.17 2016/01/14 04:17:40 krw Exp $ */ // // partition_map.c - partition map routines @@ -100,7 +100,6 @@ void combine_entry(partition_map *entry); long compute_device_size(char *name); DPME* create_data(const char *name, const char *dptype, u32 base, u32 length); void delete_entry(partition_map *entry); -char *get_HFS_name(partition_map *entry, int *kind); void insert_in_base_order(partition_map *entry); void insert_in_disk_order(partition_map *entry); int read_block(partition_map_header *map, unsigned long num, char *buf); @@ -210,7 +209,6 @@ close_partition_map(partition_map_header *map) for (entry = map->disk_order; entry != NULL; entry = next) { next = entry->next_on_disk; free(entry->data); - free(entry->HFS_name); free(entry); } close_media(map->m); @@ -357,7 +355,6 @@ add_data_to_map(struct dpme *data, long ix, partition_map_header *map) entry->the_map = map; entry->data = data; entry->contains_driver = contains_driver(entry); - entry->HFS_name = get_HFS_name(entry, &entry->HFS_kind); insert_in_disk_order(entry); insert_in_base_order(entry); @@ -840,9 +837,7 @@ delete_partition_from_map(partition_map *entry) remove_driver(entry); // update block0 if necessary } free(entry->data); - free(entry->HFS_name); entry->HFS_kind = kHFS_not; - entry->HFS_name = 0; entry->data = data; combine_entry(entry); map = entry->the_map; @@ -974,7 +969,6 @@ delete_entry(partition_map *entry) } free(entry->data); - free(entry->HFS_name); free(entry); } diff --git a/sbin/pdisk/partition_map.h b/sbin/pdisk/partition_map.h index 0a0e03037c0..20aa89a1790 100644 --- a/sbin/pdisk/partition_map.h +++ b/sbin/pdisk/partition_map.h @@ -1,4 +1,4 @@ -/* $OpenBSD: partition_map.h,v 1.5 2016/01/12 15:32:08 krw Exp $ */ +/* $OpenBSD: partition_map.h,v 1.6 2016/01/14 04:17:40 krw Exp $ */ // // partition_map.h - partition map routines @@ -71,7 +71,6 @@ struct partition_map { int contains_driver; DPME *data; int HFS_kind; - char *HFS_name; }; typedef struct partition_map partition_map; |