From b6e0117e3ccc958725ac28efe5da84ba84aeb5d8 Mon Sep 17 00:00:00 2001
From: Jan Kadlec <jan@hp4-jankadlec.(none)>
Date: Tue, 23 Nov 2010 12:54:07 +0100
Subject: [PATCH] Changed doxygen strings to reflect implementation. Refs: #110
 #108

---
 src/dnslib/node.h  | 4 +---
 src/dnslib/rrset.h | 3 +--
 2 files changed, 2 insertions(+), 5 deletions(-)

diff --git a/src/dnslib/node.h b/src/dnslib/node.h
index 973204772..1a48d9238 100644
--- a/src/dnslib/node.h
+++ b/src/dnslib/node.h
@@ -56,9 +56,7 @@ dnslib_node_t *dnslib_node_new( dnslib_dname_t *owner, dnslib_node_t *parent );
  * \param rrset RRSet to add.
  *
  * \retval 0 on success.
- * \retval <> 0 on failure.
- *
- * \todo Specify return values according to implementation.
+ * \retval -2 if rrset can not be inserted.
  */
 int dnslib_node_add_rrset( dnslib_node_t *node, dnslib_rrset_t *rrset );
 
diff --git a/src/dnslib/rrset.h b/src/dnslib/rrset.h
index 7565c831e..55003c5ed 100644
--- a/src/dnslib/rrset.h
+++ b/src/dnslib/rrset.h
@@ -79,10 +79,9 @@ dnslib_rrset_t *dnslib_rrset_new( dnslib_dname_t *owner, uint16_t type,
  * \param rdata RDATA to add to the RRSet.
  *
  * \retval 0 if successful.
- * \retval <> 0 if an error occured.
+ * \retval -2 if either rrset or rdata was equal to NULL.
  *
  * \todo Provide some function for comparing RDATAs.
- * \todo Add return values to the comment to reflect the implementation.
  */
 int dnslib_rrset_add_rdata( dnslib_rrset_t *rrset, dnslib_rdata_t *rdata );
 
-- 
GitLab