aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJouni Malinen <jouni@codeaurora.org>2019-03-05 14:10:33 (GMT)
committerJouni Malinen <j@w1.fi>2019-03-05 14:10:33 (GMT)
commit4a9531a7559a8f6f5492aed040fcee34e8ec7eb1 (patch)
treee8a4715ed96e9cd221ab123347c1fc587a97ea79
parent3d5b88b5a00003ea50b304f88a7f00137350aadd (diff)
downloadhostap-4a9531a7559a8f6f5492aed040fcee34e8ec7eb1.zip
hostap-4a9531a7559a8f6f5492aed040fcee34e8ec7eb1.tar.gz
hostap-4a9531a7559a8f6f5492aed040fcee34e8ec7eb1.tar.bz2
bignum: Fix documentation for bignum_cmp_d()
Signed-off-by: Jouni Malinen <jouni@codeaurora.org>
-rw-r--r--src/tls/bignum.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/tls/bignum.c b/src/tls/bignum.c
index f3baafe..1a87c82 100644
--- a/src/tls/bignum.c
+++ b/src/tls/bignum.c
@@ -119,10 +119,10 @@ int bignum_cmp(const struct bignum *a, const struct bignum *b)
/**
- * bignum_cmd_d - Compare bignum to standard integer
+ * bignum_cmp_d - Compare bignum to standard integer
* @a: Bignum from bignum_init()
* @b: Small integer
- * Returns: 0 on success, -1 on failure
+ * Returns: -1 if a < b, 0 if a == b, 1 if a > b
*/
int bignum_cmp_d(const struct bignum *a, unsigned long b)
{