]> git.saurik.com Git - bison.git/blobdiff - src/symlist.c
style: use a for loop instead of a while loop, and scope reduction
[bison.git] / src / symlist.c
index 13759e30f244112ad53f7d0ae102950dfb92a38c..f9ec837c92f323a5c0aefceca0cdd86fcd759444 100644 (file)
@@ -88,7 +88,7 @@ symbol_list_syms_print (const symbol_list *l, FILE *f)
   for (/* Nothing. */; l && l->content.sym; l = l->next)
     {
       symbol_print (l->content.sym, f);
-      fprintf (stderr, l->action_props.is_value_used ? " used" : " unused");
+      fprintf (f, l->action_props.is_value_used ? " used" : " unused");
       if (l && l->content.sym)
         fprintf (f, ", ");
     }