Code

frontend: Fixed two typing issues.
authorSebastian Harl <sh@tokkee.org>
Sun, 23 Feb 2014 04:48:03 +0000 (20:48 -0800)
committerSebastian Harl <sh@tokkee.org>
Sun, 23 Feb 2014 04:48:03 +0000 (20:48 -0800)
src/frontend/grammar.y
src/frontend/scanner.l

index 8b2a8bf27c066d5a3cc0d12a481d01f5847d4d64..e6c627b3a4b966e288c9aadbbcf02ddfea5e0eb6 100644 (file)
@@ -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;
                }
        ;
index a0c05d8ab495fdd7ed4da9e215f0caa280f1b36c..948b6badf155e848c5182ad1ca38f8004a49eb3f 100644 (file)
@@ -80,7 +80,7 @@ identifier    ([A-Za-z_][A-Za-z_0-9$]*)
 <CSC>{csc_inside}      { /* ignore */ }
 <CSC>{csc_end}         { BEGIN(INITIAL); }
 <CSC><<EOF>> {
-               sdb_fe_yyerror(yylval, yyscanner, "unterminated C-style comment");
+               sdb_fe_yyerror(yylloc, yyscanner, "unterminated C-style comment");
                return SCANNER_ERROR;
        }