From 1af684ac85274babec9504eb00bf6f11ec1dff14 Mon Sep 17 00:00:00 2001 From: dds Date: Sun, 20 Nov 2005 13:48:15 +0000 Subject: Use the appropriate error function for displaying the error, instead of printing it to stdout. MFC after: 1 week --- usr.bin/indent/lexi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'usr.bin/indent') 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 [/] */ 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, -- cgit v1.1