summaryrefslogtreecommitdiff
path: root/src/buf.c
diff options
context:
space:
mode:
authorChristos Zoulas <christos@zoulas.com>2014-10-31 14:20:02 -0400
committerWill Estes <westes575@gmail.com>2014-11-11 21:09:36 -0500
commit03a7f82cb4e0b273afbd1de04603a26a467e94c9 (patch)
treed54aef088666875a9d94037884b00ce23437ba1b /src/buf.c
parent2d257614dd66f410375f24ce1f2306b3c260bd29 (diff)
NetBSD downstream patches.
const fixes. -Wconversion fixes for the skeleton files. param namespace protection (add _ to inline function parameters). unused variable/code removal. rename warn to lwarn to avoid conflict with <err.h>. ctype.h function argument correction. merged the error functions lerrif and lerrsf -> lerr.
Diffstat (limited to 'src/buf.c')
-rw-r--r--src/buf.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/buf.c b/src/buf.c
index a9284ce..fa713a6 100644
--- a/src/buf.c
+++ b/src/buf.c
@@ -91,7 +91,7 @@ struct Buf *buf_prints (struct Buf *buf, const char *fmt, const char *s)
struct Buf *buf_linedir (struct Buf *buf, const char* filename, int lineno)
{
char *dst, *t;
- const char* src;
+ const char *src;
t = flex_alloc (strlen ("#line \"\"\n") + /* constant parts */
2 * strlen (filename) + /* filename with possibly all backslashes escaped */