aboutsummaryrefslogtreecommitdiffstats
path: root/util-src/encodings.c
diff options
context:
space:
mode:
authorTobias Markmann <tm@ayena.de>2008-11-29 20:30:35 +0100
committerTobias Markmann <tm@ayena.de>2008-11-29 20:30:35 +0100
commitf39b9177c92385836bf216a459b159784a98ce23 (patch)
treeb101dd1edbe21beaaf7604b05ba6f49059ad2b04 /util-src/encodings.c
parent8d6ef1df3855daca2cb0cab27ce443816dba2d2b (diff)
parente20fe5e4675cb489a24664b8d465e6c445077ed9 (diff)
downloadprosody-f39b9177c92385836bf216a459b159784a98ce23.tar.gz
prosody-f39b9177c92385836bf216a459b159784a98ce23.zip
Automated merge.
Diffstat (limited to 'util-src/encodings.c')
-rw-r--r--util-src/encodings.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/util-src/encodings.c b/util-src/encodings.c
index ac24ebcf..5fe2c805 100644
--- a/util-src/encodings.c
+++ b/util-src/encodings.c
@@ -7,19 +7,17 @@
#define _CRT_SECURE_NO_DEPRECATE
#include <string.h>
-#include <malloc.h>
+#include <stdlib.h>
#include "lua.h"
#include "lauxlib.h"
/***************** BASE64 *****************/
-#define uint unsigned int
-
static const char code[]=
"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
-static void base64_encode(luaL_Buffer *b, uint c1, uint c2, uint c3, int n)
+static void base64_encode(luaL_Buffer *b, unsigned int c1, unsigned int c2, unsigned int c3, int n)
{
unsigned long tuple=c3+256UL*(c2+256UL*c1);
int i;