From: Sebastian Harl Date: Sun, 23 Feb 2014 04:48:03 +0000 (-0800) Subject: frontend: Fixed two typing issues. X-Git-Tag: sysdb-0.1.0~183 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=ee4601a116d7c8f035d322373f7825d5373e454e;p=sysdb.git frontend: Fixed two typing issues. --- 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; }