aboutsummaryrefslogtreecommitdiffstats
path: root/util-src
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2010-12-26 05:45:35 +0000
committerMatthew Wild <mwild1@gmail.com>2010-12-26 05:45:35 +0000
commit3a5ee7ec2dbac739038db5bf79dcff7627fd4309 (patch)
tree257c7db8bfe6e7982a2cc2c19c6a98bc099df356 /util-src
parent5d2fe8b47955040411a5940fe8481b22941a7934 (diff)
downloadprosody-3a5ee7ec2dbac739038db5bf79dcff7627fd4309.tar.gz
prosody-3a5ee7ec2dbac739038db5bf79dcff7627fd4309.zip
util.encodings: Switch comment styles to build ok as ANSI C
Diffstat (limited to 'util-src')
-rw-r--r--util-src/encodings.c10
1 files changed, 5 insertions, 5 deletions
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 <string.h>
@@ -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