summaryrefslogtreecommitdiff
path: root/sbin/pdisk
diff options
context:
space:
mode:
authorDale Rahn <drahn@cvs.openbsd.org>2010-05-19 22:12:04 +0000
committerDale Rahn <drahn@cvs.openbsd.org>2010-05-19 22:12:04 +0000
commite035ce65660857d1518c2b49cf236234d9a3f452 (patch)
treeb8c2f88fd0c7dde95993b3905a8810580fb02a2d /sbin/pdisk
parentad2203f378b6aaaa1accba4d1d48add4c3aa0c96 (diff)
Use the newly committed version of strnlen from libc. ok millert@ kettenis@
Diffstat (limited to 'sbin/pdisk')
-rw-r--r--sbin/pdisk/dump.c15
1 files changed, 0 insertions, 15 deletions
diff --git a/sbin/pdisk/dump.c b/sbin/pdisk/dump.c
index 9fbc8b3c8c4..cfcd217eaf4 100644
--- a/sbin/pdisk/dump.c
+++ b/sbin/pdisk/dump.c
@@ -124,7 +124,6 @@ void dump_partition_entry(partition_map *entry, int type_length, int name_length
int get_max_base_or_length(partition_map_header *map);
int get_max_name_string_length(partition_map_header *map);
int get_max_type_string_length(partition_map_header *map);
-int strnlen(char *s, int n);
//
@@ -734,20 +733,6 @@ display_patches(partition_map *entry)
}
int
-strnlen(char *s, int n)
-{
- int i;
-
- for (i = 0; i < n; i++) {
- if (*s == 0) {
- break;
- }
- s++;
- }
- return i;
-}
-
-int
get_max_type_string_length(partition_map_header *map)
{
partition_map * entry;