summaryrefslogtreecommitdiffstats
path: root/engines
diff options
context:
space:
mode:
authorSuren A. Chilingaryan <csa@dside.dyndns.org>2008-12-15 17:10:09 +0000
committerSuren A. Chilingaryan <csa@dside.dyndns.org>2008-12-15 17:10:09 +0000
commit2721c9054f96693a77cb522358beb9021038edc7 (patch)
tree5839af331351c274b1de1f852d6c2c6747a31e3c /engines
parent161a683873dc52a7a72242d1a006faed0f92ad3f (diff)
downloadlibrcc-2721c9054f96693a77cb522358beb9021038edc7.tar.gz
librcc-2721c9054f96693a77cb522358beb9021038edc7.tar.bz2
librcc-2721c9054f96693a77cb522358beb9021038edc7.tar.xz
librcc-2721c9054f96693a77cb522358beb9021038edc7.zip
Provide GPL disclaimers with all sources
- Add GPL disclaimers to all sources - Suppress gcc-4.2 warnings
Diffstat (limited to 'engines')
-rw-r--r--engines/libguess.c19
-rw-r--r--engines/librcd.c19
-rw-r--r--engines/western.c23
3 files changed, 59 insertions, 2 deletions
diff --git a/engines/libguess.c b/engines/libguess.c
index 99f3755..981e6f1 100644
--- a/engines/libguess.c
+++ b/engines/libguess.c
@@ -1,3 +1,22 @@
+/*
+ LibRCC - LibGUESS Engine
+
+ Copyright (C) 2005-2008 Suren A. Chilingaryan <csa@dside.dyndns.org>
+
+ This program is free software; you can redistribute it and/or modify it
+ under the terms of version 2 of the GNU General Public License as published
+ by the Free Software Foundation.
+
+ This program is distributed in the hope that it will be useful, but WITHOUT
+ ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
+ FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
+ more details.
+
+ You should have received a copy of the GNU General Public License along
+ with this program; if not, write to the Free Software Foundation, Inc.,
+ 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.
+*/
+
#include <stdio.h>
#include <string.h>
diff --git a/engines/librcd.c b/engines/librcd.c
index bfb14b0..0667b0c 100644
--- a/engines/librcd.c
+++ b/engines/librcd.c
@@ -1,3 +1,22 @@
+/*
+ LibRCC - LibRCD engine
+
+ Copyright (C) 2005-2008 Suren A. Chilingaryan <csa@dside.dyndns.org>
+
+ This program is free software; you can redistribute it and/or modify it
+ under the terms of version 2 of the GNU General Public License as published
+ by the Free Software Foundation.
+
+ This program is distributed in the hope that it will be useful, but WITHOUT
+ ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
+ FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
+ more details.
+
+ You should have received a copy of the GNU General Public License along
+ with this program; if not, write to the Free Software Foundation, Inc.,
+ 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.
+*/
+
#include <stdio.h>
#include <string.h>
diff --git a/engines/western.c b/engines/western.c
index 4c6e1aa..ac92476 100644
--- a/engines/western.c
+++ b/engines/western.c
@@ -1,3 +1,22 @@
+/*
+ LibRCC - ISO8859-1/UTF-8 detection engine
+
+ Copyright (C) 2005-2008 Suren A. Chilingaryan <csa@dside.dyndns.org>
+
+ This program is free software; you can redistribute it and/or modify it
+ under the terms of version 2 of the GNU General Public License as published
+ by the Free Software Foundation.
+
+ This program is distributed in the hope that it will be useful, but WITHOUT
+ ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
+ FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
+ more details.
+
+ You should have received a copy of the GNU General Public License along
+ with this program; if not, write to the Free Software Foundation, Inc.,
+ 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.
+*/
+
#include <stdio.h>
#include <string.h>
@@ -13,12 +32,12 @@
*/
static rcc_autocharset_id AutoengineWestern(rcc_engine_context ctx, const char *sbuf, int len) {
- const unsigned char *buf = sbuf;
+ const unsigned char *buf = (const unsigned char*)sbuf;
long i,j;
int bytes=0,rflag=0;
int res=0;
- if (!len) len = strlen(buf);
+ if (!len) len = strlen((char*)buf);
for (i=0;i<len;i++) {
if (buf[i]<128) continue;