sed: use warn()/err() where appropriate
authormillert <millert@openbsd.org>
Wed, 17 Jul 2024 20:57:15 +0000 (20:57 +0000)
committermillert <millert@openbsd.org>
Wed, 17 Jul 2024 20:57:15 +0000 (20:57 +0000)
commit58b8553b11de927ce5c25f31489cec554cac10de
tree8d0511ef11ee61e56b711b3a1967051747273353
parent3ae2a32a1aaaf70bbc57e653c10d4dd5a75f04a2
sed: use warn()/err() where appropriate

Use warn()/err() instead of sed's homegrown warning()/error() for
things other than parser problems.  The warning()/error() functions
display the file and line number in addition to the error message.
This also removes of the COMPILE/FATAL argument to error() since
now all calls to error() are for compilation/parsing issues.
OK op@ espie@
usr.bin/sed/compile.c
usr.bin/sed/defs.h
usr.bin/sed/extern.h
usr.bin/sed/main.c
usr.bin/sed/misc.c
usr.bin/sed/process.c