From ee4601a116d7c8f035d322373f7825d5373e454e Mon Sep 17 00:00:00 2001 From: Sebastian Harl Date: Sat, 22 Feb 2014 20:48:03 -0800 Subject: [PATCH] frontend: Fixed two typing issues. --- src/frontend/grammar.y | 3 ++- src/frontend/scanner.l | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/frontend/grammar.y b/src/frontend/grammar.y index 8b2a8bf..e6c627b 100644 --- a/src/frontend/grammar.y +++ b/src/frontend/grammar.y @@ -106,7 +106,8 @@ statement: list_statement: LIST { - $$ = sdb_object_create_T(/* name = */ NULL, sdb_conn_node_t); + $$ = SDB_CONN_NODE(sdb_object_create_T(/* name = */ NULL, + sdb_conn_node_t)); ((sdb_conn_node_t *)$$)->cmd = CONNECTION_LIST; } ; diff --git a/src/frontend/scanner.l b/src/frontend/scanner.l index a0c05d8..948b6ba 100644 --- a/src/frontend/scanner.l +++ b/src/frontend/scanner.l @@ -80,7 +80,7 @@ identifier ([A-Za-z_][A-Za-z_0-9$]*) {csc_inside} { /* ignore */ } {csc_end} { BEGIN(INITIAL); } <> { - sdb_fe_yyerror(yylval, yyscanner, "unterminated C-style comment"); + sdb_fe_yyerror(yylloc, yyscanner, "unterminated C-style comment"); return SCANNER_ERROR; } -- 2.30.2