diff options
Diffstat (limited to 'libtest')
-rwxr-xr-x | libtest/callbacks-example-contentfilter.c | 2 | ||||
-rwxr-xr-x | libtest/callbacks-example-listlinks.c | 4 | ||||
-rwxr-xr-x | libtest/callbacks-example-log.c | 2 | ||||
-rwxr-xr-x | libtest/callbacks-example-simple.c | 4 |
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"); |