]> sourceware.org Git - systemtap.git/commitdiff
staprun/monitor.c: build under -std=c90-ish
authorFrank Ch. Eigler <fche@redhat.com>
Thu, 24 Mar 2016 10:42:31 +0000 (06:42 -0400)
committerFrank Ch. Eigler <fche@redhat.com>
Thu, 24 Mar 2016 10:42:31 +0000 (06:42 -0400)
No  ... for(int i ...  for you!

staprun/monitor.c

index 87011bf100b728cb9d0da4d8b0fdc97b93c1f373..cc737f15983e0aa9185ddbd57f4fe2535b1f3f38 100644 (file)
@@ -222,6 +222,7 @@ void monitor_render(void)
   char path[PATH_MAX];
   time_t current_time = time(NULL);
   int monitor_x, monitor_y, max_cols, max_rows, cur_y, cur_x;
+  int i;
   
   if (resized)
     handle_resize();
@@ -229,7 +230,7 @@ void monitor_render(void)
   /* Render previously recorded output */
   wclear(monitor_output);
   getmaxyx(monitor_output, monitor_y, monitor_x);
-  for (int i = 0; i < h_queue.count-output_scroll; i++)
+  for (i = 0; i < h_queue.count-output_scroll; i++)
     wprintw(monitor_output, "%s", h_queue.lines[(h_queue.oldest+i) % MAX_HISTORY]);
   wrefresh(monitor_output);
 
This page took 0.029769 seconds and 5 git commands to generate.