diff options
author | Noriko Hosoi <nhosoi@redhat.com> | 2007-10-18 00:08:38 +0000 |
---|---|---|
committer | Noriko Hosoi <nhosoi@redhat.com> | 2007-10-18 00:08:38 +0000 |
commit | 19cd513a509aa6e45361df774e74f2d39451e08a (patch) | |
tree | 13ad0e58a486afd842559e1d74d019190c3f1d79 /ldap/servers/slapd/back-ldbm/sort.c | |
parent | 878c163528ed089dae1edb8295a6dd4ae842b9b4 (diff) | |
download | ds-19cd513a509aa6e45361df774e74f2d39451e08a.tar.gz ds-19cd513a509aa6e45361df774e74f2d39451e08a.tar.xz ds-19cd513a509aa6e45361df774e74f2d39451e08a.zip |
Resolves: #188320
Summary: HP-UX: warnings reported by the HP-UX compiler
Diffstat (limited to 'ldap/servers/slapd/back-ldbm/sort.c')
-rw-r--r-- | ldap/servers/slapd/back-ldbm/sort.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/ldap/servers/slapd/back-ldbm/sort.c b/ldap/servers/slapd/back-ldbm/sort.c index f2ee1fd4..b9f3e211 100644 --- a/ldap/servers/slapd/back-ldbm/sort.c +++ b/ldap/servers/slapd/back-ldbm/sort.c @@ -673,7 +673,6 @@ static int compare_entries_sv(ID *id_a, ID *id_b, sort_spec *s,baggage_carrier * struct backentry *b = NULL; int result = 0; sort_spec_thing *this_one = NULL; - int return_value = -1; backend *be = bc->be; ldbm_instance *inst = (ldbm_instance *) be->be_instance_info; int err; @@ -706,8 +705,8 @@ static int compare_entries_sv(ID *id_a, ID *id_b, sort_spec *s,baggage_carrier * struct berval **value_b = NULL; /* Get the two attribute values from the entries */ - return_value = slapi_entry_attr_find(a->ep_entry,type,&attr_a); - return_value = slapi_entry_attr_find(b->ep_entry,type,&attr_b); + slapi_entry_attr_find(a->ep_entry,type,&attr_a); + slapi_entry_attr_find(b->ep_entry,type,&attr_b); /* What do we do if one or more of the entries lacks this attribute ? */ /* if one lacks the attribute */ if (NULL == attr_a) { |