From 6e6ae4354b1c30d3bc6de191fa3d2c11ffd69ad2 Mon Sep 17 00:00:00 2001 From: Andrew Johnson Date: Thu, 19 May 2016 14:01:05 -0500 Subject: [PATCH] Fix warnings from dbmfStrdup() change --- src/ioc/dbtemplate/dbLoadTemplate_lex.l | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ioc/dbtemplate/dbLoadTemplate_lex.l b/src/ioc/dbtemplate/dbLoadTemplate_lex.l index afb729517..c6a99a8a1 100644 --- a/src/ioc/dbtemplate/dbLoadTemplate_lex.l +++ b/src/ioc/dbtemplate/dbLoadTemplate_lex.l @@ -24,13 +24,13 @@ bareword [a-zA-Z0-9_\-+:./\\\[\]<>;] {doublequote}({dstringchar}|{escape})*{doublequote} | {singlequote}({sstringchar}|{escape})*{singlequote} { - yylval.Str = dbmfStrdup(yytext+1); + yylval.Str = dbmfStrdup((char *) yytext+1); yylval.Str[strlen(yylval.Str)-1] = '\0'; return(QUOTE); } {bareword}+ { - yylval.Str = dbmfStrdup(yytext); + yylval.Str = dbmfStrdup((char *) yytext); return(WORD); }