From 8e2b0deb94ea52b49404d5b9277061101bd03cff Mon Sep 17 00:00:00 2001 From: Tobias Markmann Date: Fri, 28 Nov 2008 18:32:54 +0100 Subject: Do idna_to_ascii when building own response. --- util-src/Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'util-src') diff --git a/util-src/Makefile b/util-src/Makefile index a4901c95..035ec286 100644 --- a/util-src/Makefile +++ b/util-src/Makefile @@ -1,13 +1,13 @@ -LUA_INCLUDE=/usr/include/lua5.1 +LUA_INCLUDE=/usr/include/lua51 LUA_LIB=lua5.1 IDN_LIB=idn OPENSSL_LIB=ssl - all: encodings.so hashes.so + install: encodings.so hashes.so strip *.so -- cgit v1.2.3 From 0df2b3f0c51f75dd9106671362bdfae7a8a44afd Mon Sep 17 00:00:00 2001 From: Tobias Markmann Date: Fri, 28 Nov 2008 18:36:04 +0100 Subject: To use free you should include stdlib.h rather than malloc.h according to man page of free() and various C reference websites. --- util-src/encodings.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'util-src') diff --git a/util-src/encodings.c b/util-src/encodings.c index ac24ebcf..13706a89 100644 --- a/util-src/encodings.c +++ b/util-src/encodings.c @@ -7,7 +7,7 @@ #define _CRT_SECURE_NO_DEPRECATE #include -#include +#include #include "lua.h" #include "lauxlib.h" -- cgit v1.2.3 From a718775bd40db918564a31e90f4c17a98a4cecfc Mon Sep 17 00:00:00 2001 From: Tobias Markmann Date: Fri, 28 Nov 2008 19:24:08 +0100 Subject: Use unsigned int instead of uint because uint is already in use on OS X. --- util-src/encodings.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'util-src') diff --git a/util-src/encodings.c b/util-src/encodings.c index 13706a89..5fe2c805 100644 --- a/util-src/encodings.c +++ b/util-src/encodings.c @@ -14,12 +14,10 @@ /***************** 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; -- cgit v1.2.3