summaryrefslogtreecommitdiff
path: root/src/base64.c
diff options
context:
space:
mode:
authorJannis Hoffmann <jannis@fehcom.de>2024-07-08 17:27:59 +0200
committerJannis Hoffmann <jannis@fehcom.de>2024-07-08 17:27:59 +0200
commitfde72e50fc280e583b8aec13b4d4af3bd1d205e5 (patch)
tree82942834b95758bb1b129dee6a9c9d13d7542f00 /src/base64.c
parent973ae30e7c4f7a1afb385dd3d8eeea178f981445 (diff)
removed unneeded headers; fixed some warnings
Diffstat (limited to 'src/base64.c')
-rw-r--r--src/base64.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/base64.c b/src/base64.c
index fca31c9..52725f3 100644
--- a/src/base64.c
+++ b/src/base64.c
@@ -1,7 +1,5 @@
#include "base64.h"
-#include "str.h"
-
static char *b64alpha = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
#define B64PAD '='
@@ -95,7 +93,7 @@ int b64decode(const unsigned char *in, int l, stralloc *out)
int b64encode(stralloc *in, stralloc *out)
{
unsigned char a, b, c;
- int i;
+ size_t i;
char *s;
if (in->len == 0) {