X-Git-Url: https://git.enpas.org/?a=blobdiff_plain;f=util-src%2Fencodings.c;h=2a4653fbf15979ca525046dc48d112686ecf9063;hb=749102c2a31d83dbe902234f65dc740242fa1be9;hp=a6fdada3340951e4c4d0145f9c6633aabbea5198;hpb=59e758c5526da8c226db064b6b91ca6940fb19d0;p=prosody.git diff --git a/util-src/encodings.c b/util-src/encodings.c index a6fdada3..2a4653fb 100644 --- a/util-src/encodings.c +++ b/util-src/encodings.c @@ -12,7 +12,7 @@ * Lua library for base64, stringprep and idna encodings */ -// Newer MSVC compilers deprecate strcpy as unsafe, but we use it in a safe way +/* Newer MSVC compilers deprecate strcpy as unsafe, but we use it in a safe way */ #define _CRT_SECURE_NO_DEPRECATE #include @@ -135,7 +135,7 @@ static int stringprep_prep(lua_State *L, const Stringprep_profile *profile) s = lua_tolstring(L, 1, &len); if (len >= 1024) { lua_pushnil(L); - return 1; // TODO return error message + return 1; /* TODO return error message */ } strcpy(string, s); ret = stringprep(string, 1024, (Stringprep_profile_flags)0, profile); @@ -144,7 +144,7 @@ static int stringprep_prep(lua_State *L, const Stringprep_profile *profile) return 1; } else { lua_pushnil(L); - return 1; // TODO return error message + return 1; /* TODO return error message */ } } @@ -261,7 +261,7 @@ static int Lidna_to_ascii(lua_State *L) /** idna.to_ascii(s) */ } else { lua_pushnil(L); idn_free(output); - return 1; // TODO return error message + return 1; /* TODO return error message */ } } @@ -278,7 +278,7 @@ static int Lidna_to_unicode(lua_State *L) /** idna.to_unicode(s) */ } else { lua_pushnil(L); idn_free(output); - return 1; // TODO return error message + return 1; /* TODO return error message */ } } #else