Module Name: src
Committed By: he
Date: Sun May 10 22:03:22 UTC 2009
Modified Files:
src/dist/pdisk: dump.c
Log Message:
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.
To generate a diff of this commit:
cvs rdiff -u -r1.9 -r1.10 src/dist/pdisk/dump.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/dist/pdisk/dump.c
diff -u src/dist/pdisk/dump.c:1.9 src/dist/pdisk/dump.c:1.10
--- src/dist/pdisk/dump.c:1.9 Sat Apr 18 06:37:35 2009
+++ src/dist/pdisk/dump.c Sun May 10 22:03:22 2009
@@ -131,7 +131,6 @@
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);
//
@@ -787,20 +786,6 @@
}
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;