summaryrefslogtreecommitdiff
path: root/lib/auth
diff options
context:
space:
mode:
authorNikos Mavrogiannopoulos <nmav@gnutls.org>2014-04-27 18:02:45 +0200
committerNikos Mavrogiannopoulos <nmav@gnutls.org>2014-04-27 18:02:45 +0200
commit2b367677f8a49389ff29703cf7191e2b70c22c88 (patch)
tree754021e86cb2e9d8d137ce4d965a6dd2f2f3d622 /lib/auth
parente1a375376f9876b1f8308e5ff135366348ede063 (diff)
downloadgnutls-2b367677f8a49389ff29703cf7191e2b70c22c88.tar.gz
Use unsigned type for encode(). Based on suggestion by Shawn (sth0r2046 [at] gmail.com).
Diffstat (limited to 'lib/auth')
-rw-r--r--lib/auth/srp_sb64.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/auth/srp_sb64.c b/lib/auth/srp_sb64.c
index 852eb4dc09..b26270c080 100644
--- a/lib/auth/srp_sb64.c
+++ b/lib/auth/srp_sb64.c
@@ -58,7 +58,7 @@ static const uint8_t asciitable[128] = {
0xff, 0xff
};
-inline static int encode(uint8_t * result, const uint8_t * rdata, int left)
+inline static int encode(uint8_t * result, const uint8_t * rdata, unsigned left)
{
int data_len;
@@ -143,7 +143,7 @@ _gnutls_sbase64_encode(uint8_t * data, size_t data_size, char **result)
unsigned i, j;
int ret, tmp;
uint8_t tmpres[4];
- int mod = data_size % 3;
+ unsigned mod = data_size % 3;
ret = mod;
if (ret != 0)