summaryrefslogtreecommitdiffstats
path: root/src/rcctranslate.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/rcctranslate.c')
-rw-r--r--src/rcctranslate.c10
1 files changed, 7 insertions, 3 deletions
diff --git a/src/rcctranslate.c b/src/rcctranslate.c
index 3bbd916..d7bb4e4 100644
--- a/src/rcctranslate.c
+++ b/src/rcctranslate.c
@@ -66,18 +66,22 @@ int rccTranslateSetTimeout(rcc_translate translate, unsigned long us) {
char *rccTranslate(rcc_translate translate, const char *buf) {
#ifdef HAVE_LIBTRANSLATE
- size_t i;
rcc_external_command_s resp;
size_t err, len;
char *buffer;
-
- if ((!translate)||(!buf)) return NULL;
+/*
+ size_t i;
+*/
+ if ((!translate)||(!buf)) return NULL;
+
+/*
if (!strcmp(translate->prefix.to, "en")) {
for (i=0;buf[i];i++)
if ((unsigned char)buf[i]>0x7F) break;
if (!buf[i]) return NULL;
}
+*/
if (translate->sock == -1) {
translate->sock = rccExternalConnect(RCC_EXTERNAL_MODULE_LIBRTRANSLATE);