checksrc: fix code quality findings

- fix counting errors. Update test1185 results accordingly.
- fix an error message.
- tidy up regexp syntax.

Pointed out by GitHub Code Quality

Closes #21429
This commit is contained in:
Viktor Szakats 2026-04-24 01:24:32 +02:00
parent 4bc34a5416
commit ee65f19e2a
No known key found for this signature in database
2 changed files with 12 additions and 12 deletions

View file

@ -233,7 +233,7 @@ void startfunc(int a, int b) {
./%LOGDIR/code1185.c:1:1: error: Missing closing comment (OPENCOMMENT)
%SP
^
checksrc: 0 errors and 45 warnings
checksrc: 3 errors and 42 warnings
</stdout>
<errorcode>
5