]> git.meshlink.io Git - meshlink/blobdiff - src/meshlink.h
put macro value in parentheses
[meshlink] / src / meshlink.h
index a21af570d54c75c81a2b61425acce7524a424af6..3f8c1c82d1bca5b6e137cfe5bd925f86b574bd14 100644 (file)
@@ -30,7 +30,7 @@ extern "C" {
 #endif
 
 /// The length in bytes of a signature made with meshlink_sign()
-#define MESHLINK_SIGLEN 64
+#define MESHLINK_SIGLEN  (64)
 
 /// A handle for an instance of MeshLink.
 typedef struct meshlink_handle meshlink_handle_t;
@@ -69,11 +69,11 @@ struct meshlink_channel {
 /// Get the text for the given MeshLink error code.
 /** This function returns a pointer to the string containing the description of the given error code.
  *
- *  @param errno    An error code returned by MeshLink.
+ *  @param err      An error code returned by MeshLink.
  *
  *  @return         A pointer to a string containing the description of the error code.
  */
-extern const char *meshlink_strerror(meshlink_errno_t errno);
+extern const char *meshlink_strerror(meshlink_errno_t err);
 
 /// Open or create a MeshLink instance.
 /** This function opens or creates a MeshLink instance.