diff --git a/distrib/distrib.cc b/distrib/distrib.cc index fb21184..5d9a8e9 100644 --- a/distrib/distrib.cc +++ b/distrib/distrib.cc @@ -117,7 +117,7 @@ void connection_thread(distrib::connection_thread_arg_t * arg) bool done = false; /* loop listening for messages from the client */ - for (;;) + while (!done) { int msg_type; int nread = read(client_socket, &msg_type, sizeof(msg_type)); diff --git a/parser/parser.yy b/parser/parser.yy index 3eaeb49..839c75d 100644 --- a/parser/parser.yy +++ b/parser/parser.yy @@ -347,14 +347,6 @@ shape: plane { $$ = $1; } | subtract { $$ = $1; } ; -shape_items: /* empty */ - | shape_item shape_items { - $$ = new ItemsNode(); - $$->addChild($1); - $$->addChildren($2); - } - ; - shape_item: material { $$ = $1; } | material_ref { $$ = $1; } | transform { $$ = $1; }