summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRich Megginson <rmeggins@redhat.com>2010-07-23 15:06:38 -0600
committerRich Megginson <rmeggins@redhat.com>2010-08-31 10:36:01 -0600
commit316fc40f7ab94cdfb5c2d1aa89f276734f479ed4 (patch)
tree2ac5aebc0423e68ac40ab68f32da0c8657776636
parent38fe16677d69ecf3cdaceffd20b3780396eae3de (diff)
downloadds-316fc40f7ab94cdfb5c2d1aa89f276734f479ed4.tar.gz
ds-316fc40f7ab94cdfb5c2d1aa89f276734f479ed4.tar.xz
ds-316fc40f7ab94cdfb5c2d1aa89f276734f479ed4.zip
fix some compiler warnings
-rw-r--r--ldap/servers/plugins/cos/cos_cache.c1
-rw-r--r--ldap/servers/slapd/agtmmap.c1
-rw-r--r--ldap/servers/slapd/dn.c1
3 files changed, 1 insertions, 2 deletions
diff --git a/ldap/servers/plugins/cos/cos_cache.c b/ldap/servers/plugins/cos/cos_cache.c
index 8c72b8ff..fe8f5346 100644
--- a/ldap/servers/plugins/cos/cos_cache.c
+++ b/ldap/servers/plugins/cos/cos_cache.c
@@ -3530,7 +3530,6 @@ static int cos_cache_follow_pointer( vattr_context *c, const char *dn, char *typ
}
}
-bail:
/* clean up */
if(pDnSearch)
{
diff --git a/ldap/servers/slapd/agtmmap.c b/ldap/servers/slapd/agtmmap.c
index b152a7c3..9303bb5b 100644
--- a/ldap/servers/slapd/agtmmap.c
+++ b/ldap/servers/slapd/agtmmap.c
@@ -310,6 +310,7 @@ agt_mopen_stats (char * statsfile, int mode, int *hdl)
#endif /* !__WINNT__ */
+ return 0;
} /* agt_mopen_stats () */
diff --git a/ldap/servers/slapd/dn.c b/ldap/servers/slapd/dn.c
index 180d8094..a163fb35 100644
--- a/ldap/servers/slapd/dn.c
+++ b/ldap/servers/slapd/dn.c
@@ -510,7 +510,6 @@ slapi_dn_normalize_ext(char *src, size_t src_len, char **dest, size_t *dest_len)
struct berval *subrdn_avs = NULL;
struct berval subinitial_rdn_av_stack[ SLAPI_DNNORM_INITIAL_RDN_AVS ];
int chkblank = 0;
- int avstat = 0;
if (NULL == dest) {
goto bail;