summaryrefslogtreecommitdiff
path: root/src/htsrobots.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/htsrobots.c')
-rw-r--r--src/htsrobots.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/htsrobots.c b/src/htsrobots.c
index 0b70257..e7656b3 100644
--- a/src/htsrobots.c
+++ b/src/htsrobots.c
@@ -45,7 +45,7 @@ Please visit our Website: http://www.httrack.com
// -- robots --
// fil="" : vérifier si règle déja enregistrée
-int checkrobots(robots_wizard * robots, char *adr, char *fil) {
+int checkrobots(robots_wizard * robots, const char *adr, const char *fil) {
while(robots) {
if (strfield2(robots->adr, adr)) {
if (fil[0]) {
@@ -60,7 +60,7 @@ int checkrobots(robots_wizard * robots, char *adr, char *fil) {
return -1; // interdit
}
} else { // relatif
- if (strstrcase(fil, line)) {
+ if (strstrcase((char*) fil, line)) {
return -1;
}
}
@@ -74,7 +74,7 @@ int checkrobots(robots_wizard * robots, char *adr, char *fil) {
}
return 0;
}
-int checkrobots_set(robots_wizard * robots, char *adr, char *data) {
+int checkrobots_set(robots_wizard * robots, const char *adr, const char *data) {
if (((int) strlen(adr)) >= sizeof(robots->adr) - 2)
return 0;
if (((int) strlen(data)) >= sizeof(robots->token) - 2)