diff options
author | Nikos Mavrogiannopoulos <nmav@gnutls.org> | 2014-04-27 18:02:45 +0200 |
---|---|---|
committer | Nikos Mavrogiannopoulos <nmav@gnutls.org> | 2014-04-27 18:02:45 +0200 |
commit | 2b367677f8a49389ff29703cf7191e2b70c22c88 (patch) | |
tree | 754021e86cb2e9d8d137ce4d965a6dd2f2f3d622 /lib/auth | |
parent | e1a375376f9876b1f8308e5ff135366348ede063 (diff) | |
download | gnutls-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.c | 4 |
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) |