To avoid warnings on some compilers, return NDN_ERROR_success instead of 0.
diff --git a/ndn-cpp/c/encoding/binary-xml-interest.c b/ndn-cpp/c/encoding/binary-xml-interest.c
index 7c90a1b..b5c17a4 100644
--- a/ndn-cpp/c/encoding/binary-xml-interest.c
+++ b/ndn-cpp/c/encoding/binary-xml-interest.c
@@ -13,7 +13,7 @@
static ndn_Error encodeExclude(struct ndn_Exclude *exclude, struct ndn_BinaryXmlEncoder *encoder)
{
if (exclude->nEntries == 0)
- return 0;
+ return NDN_ERROR_success;
ndn_Error error;
if ((error = ndn_BinaryXmlEncoder_writeElementStartDTag(encoder, ndn_BinaryXml_DTag_Exclude)))
@@ -42,7 +42,7 @@
if ((error = ndn_BinaryXmlEncoder_writeElementClose(encoder)))
return error;
- return 0;
+ return NDN_ERROR_success;
}
static ndn_Error decodeExclude(struct ndn_Exclude *exclude, struct ndn_BinaryXmlDecoder *decoder)
@@ -116,7 +116,7 @@
if ((error = ndn_BinaryXmlDecoder_readElementClose(decoder)))
return error;
- return 0;
+ return NDN_ERROR_success;
}
ndn_Error ndn_encodeBinaryXmlInterest(struct ndn_Interest *interest, struct ndn_BinaryXmlEncoder *encoder)
@@ -166,7 +166,7 @@
if ((error = ndn_BinaryXmlEncoder_writeElementClose(encoder)))
return error;
- return 0;
+ return NDN_ERROR_success;
}
ndn_Error ndn_decodeBinaryXmlInterest(struct ndn_Interest *interest, struct ndn_BinaryXmlDecoder *decoder)
@@ -219,5 +219,5 @@
if ((error = ndn_BinaryXmlDecoder_readElementClose(decoder)))
return error;
- return 0;
+ return NDN_ERROR_success;
}