From 7a04ee2962ab0b83bc0042da27f1ce62225cf3c4 Mon Sep 17 00:00:00 2001 From: Matthew Wild Date: Sun, 10 Jan 2010 20:21:48 +0000 Subject: util.pposix: Fix return type of lc_abort to shush compiler warning --- util-src/pposix.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'util-src') diff --git a/util-src/pposix.c b/util-src/pposix.c index 94086ed6..cef75287 100644 --- a/util-src/pposix.c +++ b/util-src/pposix.c @@ -463,9 +463,10 @@ int lc_getrlimit(lua_State *L) { return 3; } -void lc_abort(lua_State* L) +int lc_abort(lua_State* L) { abort(); + return 0; } /* Register functions */ -- cgit v1.2.3 From e376e12502db674b55e1fe29e376225462f3a1fb Mon Sep 17 00:00:00 2001 From: Waqas Hussain Date: Wed, 10 Feb 2010 00:12:48 +0500 Subject: util.encodings: Use STD3 ASCII rules for idna.to_ascii. --- 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 5147512f..c573a330 100644 --- a/util-src/encodings.c +++ b/util-src/encodings.c @@ -174,7 +174,7 @@ static int Lidna_to_ascii(lua_State *L) /** idna.to_ascii(s) */ size_t len; const char *s = luaL_checklstring(L, 1, &len); char* output = NULL; - int ret = idna_to_ascii_8z(s, &output, 0); + int ret = idna_to_ascii_8z(s, &output, IDNA_USE_STD3_ASCII_RULES); if (ret == IDNA_SUCCESS) { lua_pushstring(L, output); idn_free(output); -- cgit v1.2.3