From ea408efe551ad837b08423f6d32b5433ab8dfe2b Mon Sep 17 00:00:00 2001 From: Rich Megginson Date: Tue, 31 Aug 2010 21:17:30 -0600 Subject: fix compiler warnings - unused vars/funcs, invalid casts This commit fixes many compiler warnings, mostly for things like unused variables, functions, goto labels. One place was using csngen_free instead of csn_free. A couple of places were using casts incorrectly, and several places needed some casts added. Tested on: RHEL5 x86_64, Fedora 14 x86_64 Reviewed by: nkinder (Thanks!) --- include/libaccess/aclproto.h | 1 - include/libaccess/dbtlibaccess.h | 2 ++ 2 files changed, 2 insertions(+), 1 deletion(-) (limited to 'include/libaccess') diff --git a/include/libaccess/aclproto.h b/include/libaccess/aclproto.h index 7562c712..5f273842 100644 --- a/include/libaccess/aclproto.h +++ b/include/libaccess/aclproto.h @@ -144,7 +144,6 @@ NSAPI_PUBLIC int ACL_Init(void); NSAPI_PUBLIC int ACL_InitPostMagnus(void); NSAPI_PUBLIC int ACL_LateInitPostMagnus(void); NSAPI_PUBLIC void ACL_ListHashUpdate(ACLListHandle_t **acllistp); -NSAPI_PUBLIC int ACL_ReadDbMapFile(NSErr_t *errp, const char *map_file, int default_only); NSAPI_PUBLIC int ACL_MethodNamesGet(NSErr_t *errp, char ***names, int *count); NSAPI_PUBLIC int ACL_MethodNamesFree(NSErr_t *errp, char **names, int count); diff --git a/include/libaccess/dbtlibaccess.h b/include/libaccess/dbtlibaccess.h index 1d78a9bd..90b943d0 100644 --- a/include/libaccess/dbtlibaccess.h +++ b/include/libaccess/dbtlibaccess.h @@ -43,7 +43,9 @@ #define LIBRARY_NAME "libaccess" +#ifdef RESOURCE_STR static char dbtlibaccessid[] = "$DBT: libaccess referenced v1 $"; +#endif /* RESOURCE_STR */ #include "i18n.h" -- cgit