summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorRich Megginson <rmeggins@redhat.com>2010-08-31 21:17:30 -0600
committerRich Megginson <rmeggins@redhat.com>2010-09-01 17:08:30 -0600
commitea408efe551ad837b08423f6d32b5433ab8dfe2b (patch)
tree0e8d7a4132d9973498e7746cefdfcfb3f97a386f /include
parent19c62472381cf72bc7bd20694bbd672edde7f94f (diff)
downloadds-ea408efe551ad837b08423f6d32b5433ab8dfe2b.tar.gz
ds-ea408efe551ad837b08423f6d32b5433ab8dfe2b.tar.xz
ds-ea408efe551ad837b08423f6d32b5433ab8dfe2b.zip
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!)
Diffstat (limited to 'include')
-rw-r--r--include/base/dbtbase.h2
-rw-r--r--include/libaccess/aclproto.h1
-rw-r--r--include/libaccess/dbtlibaccess.h2
3 files changed, 4 insertions, 1 deletions
diff --git a/include/base/dbtbase.h b/include/base/dbtbase.h
index 380bfa06..801cc07a 100644
--- a/include/base/dbtbase.h
+++ b/include/base/dbtbase.h
@@ -43,7 +43,9 @@
#define LIBRARY_NAME "base"
+#ifdef RESOURCE_STR
static char dbtbaseid[] = "$DBT: base referenced v1 $";
+#endif
#include "i18n.h"
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"