procline: only reduce mcount once per line, not once per match.
authormillert <millert@openbsd.org>
Wed, 15 Nov 2023 00:50:43 +0000 (00:50 +0000)
committermillert <millert@openbsd.org>
Wed, 15 Nov 2023 00:50:43 +0000 (00:50 +0000)
commit03848a0fe6220d28d12d9675a1a2ec69ec26e367
tree23d1681fd195aecf411b7991dbae5ee5b6866902
parent0a0902a1f64a2efdbca6d8277ec73744c0935c9d
procline: only reduce mcount once per line, not once per match.
This makes "grep -m" behave like GNU grep (where the -m option
originated).  From Crystal Kolipe.
usr.bin/grep/grep.1
usr.bin/grep/util.c