summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMariusz PluciƄski <mplucinski@mplucinski.com>2014-07-25 15:10:48 +0200
committerWill Estes <westes575@gmail.com>2014-07-25 09:48:16 -0400
commit681db87f8ffb3d6177f0bfa54d877a88ea0a9ed8 (patch)
tree97acad32d4a414ea29f6e5036e50f7c12e6a5d58
parentf46a8c9ae460d1d002d5e9904ba0a6917c533118 (diff)
Fix warning on assigning from `const char*` to `char*`
-rw-r--r--src/buf.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/buf.c b/src/buf.c
index e5deb4e..a9284ce 100644
--- a/src/buf.c
+++ b/src/buf.c
@@ -90,7 +90,8 @@ 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, *src, *t;
+ char *dst, *t;
+ const char* src;
t = flex_alloc (strlen ("#line \"\"\n") + /* constant parts */
2 * strlen (filename) + /* filename with possibly all backslashes escaped */