From c3587c0d9de852eca11d9bbc004095d54115eda4 Mon Sep 17 00:00:00 2001 From: Julian Andres Klode Date: Mon, 24 Feb 2020 17:08:34 +0100 Subject: Replace map_pointer_t with map_pointer This is a first step to a type safe cache, adding typing information everywhere. Next, we'll replace map_pointer implementation with a type safe one. --- cmdline/apt-cache.cc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'cmdline') diff --git a/cmdline/apt-cache.cc b/cmdline/apt-cache.cc index acf00bdda..2d6c1a91e 100644 --- a/cmdline/apt-cache.cc +++ b/cmdline/apt-cache.cc @@ -134,14 +134,14 @@ static bool DumpPackage(CommandLine &CmdL) // ShowHashTableStats - Show stats about a hashtable /*{{{*/ // --------------------------------------------------------------------- /* */ -static map_pointer_t PackageNext(pkgCache::Package const * const P) { return P->NextPackage; } -static map_pointer_t GroupNext(pkgCache::Group const * const G) { return G->Next; } +static map_pointer PackageNext(pkgCache::Package const * const P) { return P->NextPackage; } +static map_pointer GroupNext(pkgCache::Group const * const G) { return G->Next; } template static void ShowHashTableStats(char const *const Type, T *StartP, - map_pointer_t *Hashtable, + map_pointer *Hashtable, unsigned long Size, - map_pointer_t (*Next)(T const *const)) + map_pointer (*Next)(T const *const)) { // hashtable stats for the HashTable unsigned long NumBuckets = Size; -- cgit v1.2.3-70-g09d2