summaryrefslogtreecommitdiffstats
path: root/usr.bin/indent/lexi.c
diff options
context:
space:
mode:
authordds <dds@FreeBSD.org>2005-11-20 13:48:15 +0000
committerdds <dds@FreeBSD.org>2005-11-20 13:48:15 +0000
commit1af684ac85274babec9504eb00bf6f11ec1dff14 (patch)
tree97d8096126de12f10a670314a855119f1bcfc5b1 /usr.bin/indent/lexi.c
parent00a607320a33ffce1a7c6df33a94af6c82cafdcb (diff)
downloadFreeBSD-src-1af684ac85274babec9504eb00bf6f11ec1dff14.zip
FreeBSD-src-1af684ac85274babec9504eb00bf6f11ec1dff14.tar.gz
Use the appropriate error function for displaying the error,
instead of printing it to stdout. MFC after: 1 week
Diffstat (limited to 'usr.bin/indent/lexi.c')
-rw-r--r--usr.bin/indent/lexi.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.bin/indent/lexi.c b/usr.bin/indent/lexi.c
index 3d30bb3..60fc1ae 100644
--- a/usr.bin/indent/lexi.c
+++ b/usr.bin/indent/lexi.c
@@ -370,7 +370,7 @@ lexi(void)
do { /* copy the string */
while (1) { /* move one character or [/<char>]<char> */
if (*buf_ptr == '\n') {
- printf("%d: Unterminated literal\n", line_no);
+ diag2(1, "Unterminated literal");
goto stop_lit;
}
CHECK_SIZE_TOKEN; /* Only have to do this once in this loop,
OpenPOWER on IntegriCloud