From fc83e9c7a78d99e25817d042cbf52eed2fa4bebe Mon Sep 17 00:00:00 2001 From: Mario Fetka Date: Mon, 27 May 2024 23:42:32 +0200 Subject: [PATCH] fix libmp --- archie/tools/db_dump.c | 4 ++-- archie/tools/db_reorder.c | 4 ++-- archie/tools/db_siteidx.c | 4 ++-- archie/tools/db_stats.c | 42 +++++++++++++++++++-------------------- 4 files changed, 27 insertions(+), 27 deletions(-) diff --git a/archie/tools/db_dump.c b/archie/tools/db_dump.c index c07d04a..13891a8 100644 --- a/archie/tools/db_dump.c +++ b/archie/tools/db_dump.c @@ -28,8 +28,8 @@ #include "strings_index.h" #include "protos.h" -extern int madd proto_((MINT *a, MINT *b, MINT *c)); -extern int mout proto_((MINT *a)); +/* extern int mp_madd proto_((MINT *a, MINT *b, MINT *c)); */ +/* extern int mp_mout proto_((MINT *a)); */ extern int opterr; extern char *optarg; diff --git a/archie/tools/db_reorder.c b/archie/tools/db_reorder.c index 06cf5c8..1547050 100644 --- a/archie/tools/db_reorder.c +++ b/archie/tools/db_reorder.c @@ -28,8 +28,8 @@ #include "strings_index.h" #include "protos.h" -extern int madd proto_((MINT *a, MINT *b, MINT *c)); -extern int mout proto_((MINT *a)); +/* extern int mp_madd proto_((MINT *a, MINT *b, MINT *c)); */ +/* extern int mp_mout proto_((MINT *a)); */ extern int opterr; extern char *optarg; diff --git a/archie/tools/db_siteidx.c b/archie/tools/db_siteidx.c index 8a0d573..bde01f1 100644 --- a/archie/tools/db_siteidx.c +++ b/archie/tools/db_siteidx.c @@ -28,8 +28,8 @@ #include "strings_index.h" #include "protos.h" -extern int madd proto_((MINT *a, MINT *b, MINT *c)); -extern int mout proto_((MINT *a)); +/* extern int mp_madd proto_((MINT *a, MINT *b, MINT *c)); */ +/* extern int mp_mout proto_((MINT *a)); */ extern int opterr; extern char *optarg; diff --git a/archie/tools/db_stats.c b/archie/tools/db_stats.c index 15a1b3f..a9da316 100644 --- a/archie/tools/db_stats.c +++ b/archie/tools/db_stats.c @@ -28,8 +28,8 @@ #include "strings_index.h" #include "protos.h" -extern int madd proto_((MINT *a, MINT *b, MINT *c)); -extern int mout proto_((MINT *a)); +/* extern int mp_madd proto_((MINT *a, MINT *b, MINT *c)); */ +/* extern int mp_mout proto_((MINT *a)); */ extern int opterr; extern char *optarg; @@ -449,9 +449,9 @@ status_t stat_webindex(file_list) ptr_check(file_list, char*, "check_indiv", ERROR); - urls_total = itom(0); - indexed_urls_total = itom(0); - keys_total = itom(0); + urls_total = mp_itom(0); + indexed_urls_total = mp_itom(0); + keys_total = mp_itom(0); site_size_total = 0; excerpt_size_total = 0; @@ -608,12 +608,12 @@ status_t stat_webindex(file_list) indexed_urls_nums, keys_nums, doc_size); } - madd(keys_total, tmps = itom(keys_nums), keys_total); - mfree(tmps); - madd(urls_total, tmps = itom(urls_nums), urls_total); - mfree(tmps); - madd(indexed_urls_total, tmps = itom(indexed_urls_nums), indexed_urls_total); - mfree(tmps); + mp_madd(keys_total, tmps = mp_itom(keys_nums), keys_total); + mp_mfree(tmps); + mp_madd(urls_total, tmps = mp_itom(urls_nums), urls_total); + mp_mfree(tmps); + mp_madd(indexed_urls_total, tmps = mp_itom(indexed_urls_nums), indexed_urls_total); + mp_mfree(tmps); @@ -628,8 +628,8 @@ status_t stat_webindex(file_list) printf("\n\nTotals:\n\n"); printf("Number of sites: %d\n",total_sites); - printf("Number of urls: "); mout(urls_total); - printf("Number of indexed urls: "); mout(indexed_urls_total); + printf("Number of urls: "); mp_mout(urls_total); + printf("Number of indexed urls: "); mp_mout(indexed_urls_total); printf("Total doc sizes: %ld\n", file_size); printf("Unique keys: %d\n",unique_keys); @@ -682,8 +682,8 @@ status_t stat_anonftp(file_list) ptr_check(file_list, char*, "check_indiv", ERROR); - files_total = itom(0); - dirs_total = itom(0); + files_total = mp_itom(0); + dirs_total = mp_itom(0); total_sites = 0; @@ -766,10 +766,10 @@ status_t stat_anonftp(file_list) } - madd(files_total, tmps = itom(files_nums), files_total); - mfree(tmps); - madd(dirs_total, tmps = itom(dirs_nums), dirs_total); - mfree(tmps); + mp_madd(files_total, tmps = mp_itom(files_nums), files_total); + mp_mfree(tmps); + mp_madd(dirs_total, tmps = mp_itom(dirs_nums), dirs_total); + mp_mfree(tmps); if(verbose){ printf("%-26s %10ld %10ld %12ld\n", filename, files_nums, dirs_nums, @@ -787,8 +787,8 @@ status_t stat_anonftp(file_list) printf("\n\nTotals:\n\n"); printf("Number of sites: %d\n",total_sites); - printf("Number of files: "); mout(files_total); - printf("Number of dirs: "); mout(dirs_total); + printf("Number of files: "); mp_mout(files_total); + printf("Number of dirs: "); mp_mout(dirs_total); printf("Unique files+dirs: %d\n",unique_files); printf("\n\nDatabase stats:\n\n");