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:
parent
946ecbf082
commit
e437fa175c
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue