diff options
author | rwatson <rwatson@FreeBSD.org> | 2005-07-23 21:17:15 +0000 |
---|---|---|
committer | rwatson <rwatson@FreeBSD.org> | 2005-07-23 21:17:15 +0000 |
commit | a465907b05115a58a5c1178300875d8dc1119cd1 (patch) | |
tree | 0102be81724a1f54a8c13019736a2b01cc0cdbfb /lib/libmemstat/memstat.c | |
parent | 4eb9d677d45bfe80d30ff8ae621a5246cc58790a (diff) | |
download | FreeBSD-src-a465907b05115a58a5c1178300875d8dc1119cd1.zip FreeBSD-src-a465907b05115a58a5c1178300875d8dc1119cd1.tar.gz |
Prefix two non-static libmemstat(3) internal functions with '_' symbols, to
try and discourage use outside the library.
Remove duplicate declaration of memstat_mtl_free() from memstat_internal.h,
as it's not internal, and the memstat.h definition suffices.
Diffstat (limited to 'lib/libmemstat/memstat.c')
-rw-r--r-- | lib/libmemstat/memstat.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/lib/libmemstat/memstat.c b/lib/libmemstat/memstat.c index cbab40a..29dd19e 100644 --- a/lib/libmemstat/memstat.c +++ b/lib/libmemstat/memstat.c @@ -99,9 +99,11 @@ memstat_mtl_find(struct memory_type_list *list, int allocator, /* * Allocate a new memory_type with the specificed allocator type and name, * then insert into the list. The structure will be zero'd. + * + * libmemstat(3) internal function. */ struct memory_type * -memstat_mt_allocate(struct memory_type_list *list, int allocator, +_memstat_mt_allocate(struct memory_type_list *list, int allocator, const char *name) { struct memory_type *mtp; @@ -122,9 +124,11 @@ memstat_mt_allocate(struct memory_type_list *list, int allocator, * Reset any libmemstat(3)-owned statistics in a memory_type record so that * it can be reused without incremental addition problems. Caller-owned * memory is left "as-is", and must be updated by the caller if desired. + * + * libmemstat(3) internal function. */ void -memstat_mt_reset_stats(struct memory_type *mtp) +_memstat_mt_reset_stats(struct memory_type *mtp) { int i; |