diff options
author | dds <dds@FreeBSD.org> | 2005-11-20 13:48:15 +0000 |
---|---|---|
committer | dds <dds@FreeBSD.org> | 2005-11-20 13:48:15 +0000 |
commit | 1af684ac85274babec9504eb00bf6f11ec1dff14 (patch) | |
tree | 97d8096126de12f10a670314a855119f1bcfc5b1 /usr.bin/indent | |
parent | 00a607320a33ffce1a7c6df33a94af6c82cafdcb (diff) | |
download | FreeBSD-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')
-rw-r--r-- | usr.bin/indent/lexi.c | 2 |
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, |