From 816c50541d4af289c6dc737ab0cb945457d8bcaa Mon Sep 17 00:00:00 2001 From: Alexandra Ellwood Date: Fri, 9 Jun 2006 21:55:32 +0000 Subject: [PATCH] moved enum cc_list_type to generic_lists.h to avoid "incomplete enum" warnings when compiling generic_lists.c git-svn-id: svn://anonsvn.mit.edu/krb5/branches/ccapi@18096 dc483132-0cff-0310-8789-dd5450dbe970 --- src/lib/ccapi/common/generic_lists.c | 5 ----- src/lib/ccapi/include/datastore.h | 7 ------- src/lib/ccapi/include/generic_lists.h | 7 +++++++ 3 files changed, 7 insertions(+), 12 deletions(-) diff --git a/src/lib/ccapi/common/generic_lists.c b/src/lib/ccapi/common/generic_lists.c index a48c528f9..2c7398313 100644 --- a/src/lib/ccapi/common/generic_lists.c +++ b/src/lib/ccapi/common/generic_lists.c @@ -54,11 +54,6 @@ #include "CredentialsCache.h" #include "generic_lists.h" -/* this is an incomplete enumeration just including the generic type */ -enum cc_list_type { - generic = 0 -}; - /** * cci_generic_iterate_has_next() * diff --git a/src/lib/ccapi/include/datastore.h b/src/lib/ccapi/include/datastore.h index 4f119f969..7bb8b093d 100644 --- a/src/lib/ccapi/include/datastore.h +++ b/src/lib/ccapi/include/datastore.h @@ -53,13 +53,6 @@ #include "rpc_auth.h" #include "generic_lists.h" -enum cc_list_type { - generic = 0, - context, - cache, - credentials -}; - struct cc_context_iterate_t { cc_context_list_node_t* next; }; diff --git a/src/lib/ccapi/include/generic_lists.h b/src/lib/ccapi/include/generic_lists.h index 4d49e276b..14b7ae28c 100644 --- a/src/lib/ccapi/include/generic_lists.h +++ b/src/lib/ccapi/include/generic_lists.h @@ -49,6 +49,13 @@ #ifndef __CC_GENERIC_LISTS_H_ #define __CC_GENERIC_LISTS_H_ +enum cc_list_type { + generic = 0, + context, + cache, + credentials +}; + struct cc_generic_list_node_t { cc_uint8* data; cc_uint32 len; -- 2.26.2