diff options
| author | Philip Paeps <philip@FreeBSD.org> | 2023-03-23 01:14:52 +0000 |
|---|---|---|
| committer | Philip Paeps <philip@FreeBSD.org> | 2023-03-23 01:14:52 +0000 |
| commit | e31cd8521ff5b35ed8ae6a9df1c918caa696474e (patch) | |
| tree | 5084ef52d1c2ed2936acfdf2a7ed12233f8002fd /checktab.awk | |
| parent | 9f36c6bf1e4f29dec0e9b799b8fd00cb12de24f3 (diff) | |
Diffstat (limited to 'checktab.awk')
| -rw-r--r-- | checktab.awk | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/checktab.awk b/checktab.awk index 23e0a3a5c567..2dbf485fda3a 100644 --- a/checktab.awk +++ b/checktab.awk @@ -107,6 +107,7 @@ BEGIN { cc = cca[j] if (used_max < cc_used[cc]) { used_max = cc_used[cc] + used_max_cc = cc } } if (used_max <= 1 && comments) { @@ -114,9 +115,9 @@ BEGIN { zone_table, i, comments \ >>"/dev/stderr" status = 1 - } else if (1 < cc_used[cc] && !comments) { + } else if (1 < used_max && !comments) { printf "%s:%d: missing comment for %s\n", \ - zone_table, i, cc \ + zone_table, i, used_max_cc \ >>"/dev/stderr" status = 1 } |
