|
|
dc8c34 |
From 6f45b5bffacf2c40d59162944cc8d2327b03d4e0 Mon Sep 17 00:00:00 2001
|
|
|
dc8c34 |
From: Noriko Hosoi <nhosoi@redhat.com>
|
|
|
dc8c34 |
Date: Thu, 19 Jun 2014 17:44:57 -0700
|
|
|
dc8c34 |
Subject: [PATCH 228/228] Ticket #47820 - 1.2.11 branch: coverity errors 2
|
|
|
dc8c34 |
|
|
|
dc8c34 |
Description:
|
|
|
dc8c34 |
Porting problem.
|
|
|
dc8c34 |
Adding "struct asyntaxinfo *attr_syntax_get_by_name_with_default ( const char *name );" to ldap/servers/slapd/proto-slap.h
|
|
|
dc8c34 |
Adding "int slapi_attr_init_syntax(Slapi_Attr *a);" to ldap/servers/slapd/slapi-private.h
|
|
|
dc8c34 |
|
|
|
dc8c34 |
Reviewed by rmeggins@redhat.com (Thank you, Rich!!)
|
|
|
dc8c34 |
|
|
|
dc8c34 |
https://bugzilla.redhat.com/show_bug.cgi?id=1111404
|
|
|
dc8c34 |
---
|
|
|
dc8c34 |
ldap/servers/slapd/proto-slap.h | 1 +
|
|
|
dc8c34 |
ldap/servers/slapd/slapi-private.h | 1 +
|
|
|
dc8c34 |
2 files changed, 2 insertions(+)
|
|
|
dc8c34 |
|
|
|
dc8c34 |
diff --git a/ldap/servers/slapd/proto-slap.h b/ldap/servers/slapd/proto-slap.h
|
|
|
dc8c34 |
index 8c9f0fb..1fb782b 100644
|
|
|
dc8c34 |
--- a/ldap/servers/slapd/proto-slap.h
|
|
|
dc8c34 |
+++ b/ldap/servers/slapd/proto-slap.h
|
|
|
dc8c34 |
@@ -134,6 +134,7 @@ void attr_syntax_delete_all_not_flagged( unsigned long flag );
|
|
|
dc8c34 |
struct asyntaxinfo *attr_syntax_get_by_oid ( const char *oid );
|
|
|
dc8c34 |
struct asyntaxinfo *attr_syntax_get_by_name ( const char *name );
|
|
|
dc8c34 |
struct asyntaxinfo *attr_syntax_get_by_name_locking_optional ( const char *name, PRBool use_lock );
|
|
|
dc8c34 |
+struct asyntaxinfo *attr_syntax_get_by_name_with_default ( const char *name );
|
|
|
dc8c34 |
/*
|
|
|
dc8c34 |
* Call attr_syntax_return() when you are done using a value returned
|
|
|
dc8c34 |
* by attr_syntax_get_by_oid() or attr_syntax_get_by_name().
|
|
|
dc8c34 |
diff --git a/ldap/servers/slapd/slapi-private.h b/ldap/servers/slapd/slapi-private.h
|
|
|
dc8c34 |
index ecabbe2..940260f 100644
|
|
|
dc8c34 |
--- a/ldap/servers/slapd/slapi-private.h
|
|
|
dc8c34 |
+++ b/ldap/servers/slapd/slapi-private.h
|
|
|
dc8c34 |
@@ -354,6 +354,7 @@ int entry_add_dncsn_ext(Slapi_Entry *entry, const CSN *csn, PRUint32 flags);
|
|
|
dc8c34 |
Slapi_Attr *slapi_attr_init_locking_optional(Slapi_Attr *a, const char *type, PRBool use_lock);
|
|
|
dc8c34 |
int attr_set_csn( Slapi_Attr *a, const CSN *csn);
|
|
|
dc8c34 |
int attr_set_deletion_csn( Slapi_Attr *a, const CSN *csn);
|
|
|
dc8c34 |
+int slapi_attr_init_syntax(Slapi_Attr *a);
|
|
|
dc8c34 |
const CSN *attr_get_deletion_csn(const Slapi_Attr *a);
|
|
|
dc8c34 |
int attr_first_deleted_value( Slapi_Attr *a, Slapi_Value **v );
|
|
|
dc8c34 |
int attr_next_deleted_value( Slapi_Attr *a, int hint, Slapi_Value **v);
|
|
|
dc8c34 |
--
|
|
|
dc8c34 |
1.8.1.4
|
|
|
dc8c34 |
|