summaryrefslogtreecommitdiff
path: root/libtest
diff options
context:
space:
mode:
authorXavier Roche <xroche@users.noreply.github.com>2013-05-09 17:10:06 +0000
committerXavier Roche <xroche@users.noreply.github.com>2013-05-09 17:10:06 +0000
commit5d564d08125526d153928adcf872ed30827de6ed (patch)
tree6f17272de93fe03a3b19ab0210814fea5ea51b71 /libtest
parent90404c36f6ce33386242c00b41ec154dce65b30a (diff)
Fixed a bunch of warnings.
Diffstat (limited to 'libtest')
-rwxr-xr-xlibtest/callbacks-example-contentfilter.c2
-rwxr-xr-xlibtest/callbacks-example-listlinks.c4
-rwxr-xr-xlibtest/callbacks-example-log.c2
-rwxr-xr-xlibtest/callbacks-example-simple.c4
4 files changed, 9 insertions, 3 deletions
diff --git a/libtest/callbacks-example-contentfilter.c b/libtest/callbacks-example-contentfilter.c
index 489f24c..bbd2262 100755
--- a/libtest/callbacks-example-contentfilter.c
+++ b/libtest/callbacks-example-contentfilter.c
@@ -92,7 +92,7 @@ EXTERNAL_FUNCTION int hts_plug(httrackp *opt, const char* argv) {
static int process(t_hts_callbackarg *carg, httrackp *opt, char* html, int len, const char* address, const char* filename) {
t_my_userdef *userdef = (t_my_userdef*) CALLBACKARG_USERDEF(carg);
- char * const stringfilter = userdef->stringfilter;
+ /*char * const stringfilter = userdef->stringfilter;*/
char** const stringfilters = userdef->stringfilters;
/* */
int i = 0;
diff --git a/libtest/callbacks-example-listlinks.c b/libtest/callbacks-example-listlinks.c
index e602bd2..8828f3f 100755
--- a/libtest/callbacks-example-listlinks.c
+++ b/libtest/callbacks-example-listlinks.c
@@ -26,7 +26,7 @@
/* Function definitions */
static int process_file(t_hts_callbackarg *carg, httrackp *opt, char* html, int len, const char* url_address, const char* url_file);
static int check_detectedlink(t_hts_callbackarg *carg, httrackp *opt, char* link);
-static int check_loop(t_hts_callbackarg *carg, httrackp *opt, void* back,int back_max,int back_index,int lien_tot,int lien_ntot,int stat_time,void* stats);
+static int check_loop(t_hts_callbackarg *carg, httrackp *opt, void* back,int back_max,int back_index,int lien_tot,int lien_ntot,int stat_time,hts_stat_struct* stats);
static int end(t_hts_callbackarg *carg, httrackp *opt);
/* external functions */
@@ -101,7 +101,7 @@ static int check_detectedlink(t_hts_callbackarg *carg, httrackp *opt, char* link
return 1; /* success */
}
-static int check_loop(t_hts_callbackarg *carg, httrackp *opt, void* back,int back_max,int back_index,int lien_tot,int lien_ntot,int stat_time,void* stats) {
+static int check_loop(t_hts_callbackarg *carg, httrackp *opt, void* back,int back_max,int back_index,int lien_tot,int lien_ntot,int stat_time,hts_stat_struct* stats) {
static int fun_animation=0;
/* Call parent functions if multiple callbacks are chained. */
diff --git a/libtest/callbacks-example-log.c b/libtest/callbacks-example-log.c
index 068fda4..21881b7 100755
--- a/libtest/callbacks-example-log.c
+++ b/libtest/callbacks-example-log.c
@@ -33,6 +33,8 @@ static int process_file(t_hts_callbackarg *carg, httrackp *opt,
void *ourDummyArg = (void*) CALLBACKARG_USERDEF(carg); /*optional user-defined arg*/
char *fmt;
+ (void) ourDummyArg;
+
/* call parent functions if multiple callbacks are chained. you can skip this part, if you don't want previous callbacks to be called. */
if (CALLBACKARG_PREV_FUN(carg, check_html) != NULL) {
if (!CALLBACKARG_PREV_FUN(carg, check_html)(CALLBACKARG_PREV_CARG(carg), opt,
diff --git a/libtest/callbacks-example-simple.c b/libtest/callbacks-example-simple.c
index 42bf8cd..f481ed2 100755
--- a/libtest/callbacks-example-simple.c
+++ b/libtest/callbacks-example-simple.c
@@ -33,6 +33,8 @@ static int process_file(t_hts_callbackarg /*the carg structure, holding various
char* html, int len, const char* url_address, const char* url_file) {
void *ourDummyArg = (void*) CALLBACKARG_USERDEF(carg); /*optional user-defined arg*/
+ (void) ourDummyArg;
+
/* call parent functions if multiple callbacks are chained. you can skip this part, if you don't want previous callbacks to be called. */
if (CALLBACKARG_PREV_FUN(carg, check_html) != NULL) {
if (!CALLBACKARG_PREV_FUN(carg, check_html)(CALLBACKARG_PREV_CARG(carg), opt,
@@ -49,6 +51,8 @@ static int process_file(t_hts_callbackarg /*the carg structure, holding various
static int end_of_mirror(t_hts_callbackarg /*the carg structure, holding various information*/*carg, /*the option settings*/httrackp *opt) {
void *ourDummyArg = (void*) CALLBACKARG_USERDEF(carg); /*optional user-defined arg*/
+ (void) ourDummyArg;
+
/* processing */
fprintf(stderr, "That's all, folks!\n");