From 3301650689d23f8715f942eb1472cdfecaf4972f Mon Sep 17 00:00:00 2001 From: des Date: Sat, 13 Jun 2009 01:22:56 +0000 Subject: Explain to the compiler why the aliasing we're doing is OK. MFC after: 1 week --- usr.sbin/nscd/cachelib.h | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) (limited to 'usr.sbin/nscd/cachelib.h') diff --git a/usr.sbin/nscd/cachelib.h b/usr.sbin/nscd/cachelib.h index a80bd48..e466f1f 100644 --- a/usr.sbin/nscd/cachelib.h +++ b/usr.sbin/nscd/cachelib.h @@ -87,11 +87,8 @@ struct cache_entry_params /* params, used for most entries */ struct common_cache_entry_params { - /* inherited fields */ - enum cache_entry_t entry_type; + struct cache_entry_params cep; - /* unique fields */ - char *entry_name; size_t cache_entries_size; size_t max_elemsize; /* if 0 then no check is made */ @@ -105,9 +102,7 @@ struct common_cache_entry_params /* params, used for multipart entries */ struct mp_cache_entry_params { - /* inherited fields */ - enum cache_entry_t entry_type; - char *entry_name; + struct cache_entry_params cep; /* unique fields */ size_t max_elemsize; /* if 0 then no check is made */ -- cgit v1.1