diff options
| author | David M. Syzdek <david@syzdek.net> | 2023-01-06 03:25:14 -0900 |
|---|---|---|
| committer | David M. Syzdek <david@syzdek.net> | 2023-01-06 03:25:14 -0900 |
| commit | f923e1f3fb60e203200cb05c18c858428d320b47 (patch) | |
| tree | 8f681c63461a716b80e9d441f9bfa08dd75a04f6 /src | |
| parent | b78e7a6b0212f54ea09ad63ec8cb126c3732c9b5 (diff) | |
| download | otputils-f923e1f3fb60e203200cb05c18c858428d320b47.tar.gz otputils-f923e1f3fb60e203200cb05c18c858428d320b47.tar.bz2 otputils-f923e1f3fb60e203200cb05c18c858428d320b47.tar.xz otputils-f923e1f3fb60e203200cb05c18c858428d320b47.zip | |
otp-altdict: adding more stats
Diffstat (limited to 'src')
| -rw-r--r-- | src/otp-altdict.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/otp-altdict.c b/src/otp-altdict.c index 1f5314b..f687425 100644 --- a/src/otp-altdict.c +++ b/src/otp-altdict.c | |||
| @@ -845,15 +845,18 @@ my_dict_verify( | |||
| 845 | if (!(cnf->dict[x])) | 845 | if (!(cnf->dict[x])) |
| 846 | { | 846 | { |
| 847 | my_info(cnf, "missing dictionary word for value '%i'\n", x); | 847 | my_info(cnf, "missing dictionary word for value '%i'\n", x); |
| 848 | if (!(cnf->ignore_warnings)) | 848 | missing++; |
| 849 | missing = 1; | ||
| 850 | continue; | 849 | continue; |
| 851 | }; | 850 | }; |
| 852 | for(count = 0; ((cnf->dict[x][count])); count++); | 851 | for(count = 0; ((cnf->dict[x][count])); count++); |
| 853 | qsort(cnf->dict[x], count, sizeof(char *), &my_word_cmp_obj); | 852 | qsort(cnf->dict[x], count, sizeof(char *), &my_word_cmp_obj); |
| 854 | }; | 853 | }; |
| 855 | 854 | ||
| 856 | return( ((missing)) ? -1 : 0 ); | 855 | my_info(cnf, "%i values are missing dictionary words\n", missing); |
| 856 | |||
| 857 | if ( ((missing)) && (!(cnf->ignore_warnings)) ) | ||
| 858 | return(-1); | ||
| 859 | return(0); | ||
| 857 | } | 860 | } |
| 858 | 861 | ||
| 859 | 862 | ||
