summaryrefslogtreecommitdiffstats
path: root/lib/libalpm/base64.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libalpm/base64.c')
-rw-r--r--lib/libalpm/base64.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/lib/libalpm/base64.c b/lib/libalpm/base64.c
index fa8bec5c..5c9fa814 100644
--- a/lib/libalpm/base64.c
+++ b/lib/libalpm/base64.c
@@ -65,10 +65,10 @@ static const unsigned char base64_dec_map[128] =
/*
* Encode a buffer into base64 format
*/
-int base64_encode( unsigned char *dst, int *dlen,
- const unsigned char *src, int slen )
+int base64_encode( unsigned char *dst, size_t *dlen,
+ const unsigned char *src, size_t slen )
{
- int i, n;
+ size_t i, n;
int C1, C2, C3;
unsigned char *p;
@@ -128,10 +128,10 @@ int base64_encode( unsigned char *dst, int *dlen,
/*
* Decode a base64-formatted buffer
*/
-int base64_decode( unsigned char *dst, int *dlen,
- const unsigned char *src, int slen )
+int base64_decode( unsigned char *dst, size_t *dlen,
+ const unsigned char *src, size_t slen )
{
- int i, j, n;
+ size_t i, j, n;
unsigned long x;
unsigned char *p;