Now that we have strnlen() in libc, get rid of the local

and type-conflicting implementation here instead of fixing
it locally.  I don't think (hope!) this is size-critical.
This commit is contained in:
he 2009-05-10 22:03:22 +00:00
parent 946ecbf082
commit e437fa175c
1 changed files with 0 additions and 15 deletions

15
dist/pdisk/dump.c vendored
View File

@ -131,7 +131,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);
//
@ -786,20 +785,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)
{