diff options
author | 2010-05-19 22:12:03 +0000 | |
---|---|---|
committer | 2010-05-19 22:12:03 +0000 | |
commit | efdd3be3d57bdf770458ec52dd30d2ffcc4deab5 (patch) | |
tree | 15c6bce0008aaa63f90cb147bbb2a725e133fc04 | |
parent | cleanup-only commit, removes unrequired includes, no functionnal change (diff) | |
download | wireguard-openbsd-efdd3be3d57bdf770458ec52dd30d2ffcc4deab5.tar.xz wireguard-openbsd-efdd3be3d57bdf770458ec52dd30d2ffcc4deab5.zip |
Use the newly committed version of strnlen from libc. ok millert@ kettenis@
-rw-r--r-- | sbin/pdisk/dump.c | 15 |
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; |