summaryrefslogtreecommitdiff
path: root/jni/iodine/src/base128.c
diff options
context:
space:
mode:
authorYves Fischer <yvesf-git@xapek.org>2014-08-11 23:26:36 +0200
committerYves Fischer <yvesf-git@xapek.org>2014-08-11 23:26:36 +0200
commit5d8801d4687035ae45143f0f3bc3eeaf75dc17ec (patch)
treebf4395fd5938eb1865ba90b6e52e169d727d9404 /jni/iodine/src/base128.c
parent1251ce0d7cf2619f9b41637dcb88bebb66e54fb3 (diff)
downloadandiodine-5d8801d4687035ae45143f0f3bc3eeaf75dc17ec.tar.gz
andiodine-5d8801d4687035ae45143f0f3bc3eeaf75dc17ec.zip
Upgrade code to iodine 0.7.0 and improve logging
Diffstat (limited to 'jni/iodine/src/base128.c')
-rw-r--r--jni/iodine/src/base128.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/jni/iodine/src/base128.c b/jni/iodine/src/base128.c
index 32a29f8..7ddc38c 100644
--- a/jni/iodine/src/base128.c
+++ b/jni/iodine/src/base128.c
@@ -42,7 +42,7 @@
* accent chars since they might readily be entered in normal use,
* don't use 254-255 because of possible function overloading in DNS systems.
*/
-static const unsigned char cb128[] =
+static const unsigned char cb128[] =
"abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789"
"\274\275\276\277"
"\300\301\302\303\304\305\306\307\310\311\312\313\314\315\316\317"
@@ -75,19 +75,19 @@ struct encoder
return &base128_encoder;
}
-static int
+static int
base128_handles_dots()
{
return 0;
}
-static int
+static int
base128_blksize_raw()
{
return BLKSIZE_RAW;
}
-static int
+static int
base128_blksize_enc()
{
return BLKSIZE_ENC;
@@ -109,7 +109,7 @@ base128_reverse_init()
}
}
-static int
+static int
base128_encode(char *buf, size_t *buflen, const void *data, size_t size)
/*
* Fills *buf with max. *buflen characters, encoding size bytes of *data.
@@ -231,7 +231,7 @@ base128_decode(void *buf, size_t *buflen, const char *str, size_t slen)
if (iout >= *buflen || iin + 1 >= slen ||
str[iin] == '\0' || str[iin + 1] == '\0')
break;
- ubuf[iout] = ((REV128(ustr[iin]) & 0x7f) << 1) |
+ ubuf[iout] = ((REV128(ustr[iin]) & 0x7f) << 1) |
((REV128(ustr[iin + 1]) & 0x40) >> 6);
iin++; /* 0 used up, iin=1 */
iout++;