In TimeMilliseconds functions, rename the argument to milliseconds
diff --git a/ndn-cpp/c/encoding/BinaryXMLDecoder.c b/ndn-cpp/c/encoding/BinaryXMLDecoder.c
index b27e8bc..23dd67d 100644
--- a/ndn-cpp/c/encoding/BinaryXMLDecoder.c
+++ b/ndn-cpp/c/encoding/BinaryXMLDecoder.c
@@ -248,7 +248,7 @@
}
ndn_Error ndn_BinaryXMLDecoder_readTimeMillisecondsDTagElement
- (struct ndn_BinaryXMLDecoder *self, unsigned int expectedTag, double *value)
+ (struct ndn_BinaryXMLDecoder *self, unsigned int expectedTag, double *milliseconds)
{
ndn_Error error;
unsigned char *bytes;
@@ -256,12 +256,12 @@
if (error = ndn_BinaryXMLDecoder_readBinaryDTagElement(self, expectedTag, 0, &bytes, &bytesLength))
return error;
- *value = 1000.0 * ndn_BinaryXMLDecoder_unsignedBigEndianToDouble(bytes, bytesLength) / 4096.0;
+ *milliseconds = 1000.0 * ndn_BinaryXMLDecoder_unsignedBigEndianToDouble(bytes, bytesLength) / 4096.0;
return 0;
}
ndn_Error ndn_BinaryXMLDecoder_readOptionalTimeMillisecondsDTagElement
- (struct ndn_BinaryXMLDecoder *self, unsigned int expectedTag, double *value)
+ (struct ndn_BinaryXMLDecoder *self, unsigned int expectedTag, double *milliseconds)
{
int gotExpectedTag;
ndn_Error error;
@@ -269,11 +269,11 @@
return error;
if (!gotExpectedTag) {
- *value = -1.0;
+ *milliseconds = -1.0;
return 0;
}
- if (error = ndn_BinaryXMLDecoder_readTimeMillisecondsDTagElement(self, expectedTag, value))
+ if (error = ndn_BinaryXMLDecoder_readTimeMillisecondsDTagElement(self, expectedTag, milliseconds))
return error;
return 0;
diff --git a/ndn-cpp/c/encoding/BinaryXMLDecoder.h b/ndn-cpp/c/encoding/BinaryXMLDecoder.h
index fb8afe1..130eef4 100644
--- a/ndn-cpp/c/encoding/BinaryXMLDecoder.h
+++ b/ndn-cpp/c/encoding/BinaryXMLDecoder.h
@@ -137,22 +137,22 @@
* Finally, read the element close. Update offset.
* @param self pointer to the ndn_BinaryXMLDecoder struct
* @param expectedTag the expected value for DTAG
- * @param value output the number of milliseconds
+ * @param milliseconds output the number of milliseconds
* @return 0 for success, else an error code, including an error if not the expected tag
*/
ndn_Error ndn_BinaryXMLDecoder_readTimeMillisecondsDTagElement
- (struct ndn_BinaryXMLDecoder *self, unsigned int expectedTag, double *value);
+ (struct ndn_BinaryXMLDecoder *self, unsigned int expectedTag, double *milliseconds);
/**
* Peek at the next element, and if it has the expectedTag then call ndn_BinaryXMLDecoder_readTimeMillisecondsDTagElement.
* Otherwise, set value to -1.0 .
* @param self pointer to the ndn_BinaryXMLDecoder struct
* @param expectedTag the expected value for DTAG
- * @param value output the number of milliseconds, or -1.0 if the next element doesn't have expectedTag.
+ * @param milliseconds output the number of milliseconds, or -1.0 if the next element doesn't have expectedTag.
* @return 0 for success, else an error code
*/
ndn_Error ndn_BinaryXMLDecoder_readOptionalTimeMillisecondsDTagElement
- (struct ndn_BinaryXMLDecoder *self, unsigned int expectedTag, double *value);
+ (struct ndn_BinaryXMLDecoder *self, unsigned int expectedTag, double *milliseconds);
/**
* Interpret the bytes as an unsigned big endian integer and convert to a double. Don't check for overflow.