From a0adae4313f5bd1cb649ddd52bb34c953c405b4c Mon Sep 17 00:00:00 2001 From: Amit Kucheria Date: Wed, 12 Jan 2011 10:54:23 -0600 Subject: Mass whitespace fixups Get rid of blank lines, add spaces around operators, etc. --- display.c | 36 ++++++++++++++++++------------------ 1 file changed, 18 insertions(+), 18 deletions(-) (limited to 'display.c') diff --git a/display.c b/display.c index ee2869a..04db66a 100644 --- a/display.c +++ b/display.c @@ -99,7 +99,7 @@ void create_windows(void) if (selectedwindow == CLOCK) strcpy(footer_items[2], " Other Keys: 'Left', 'Right', 'Up', 'Down', 'enter', " - " '/', 'Esc' "); + " '/', 'Esc' "); else strcpy(footer_items[2], " Other Keys: 'Left', 'Right' "); @@ -122,13 +122,13 @@ void create_selectedwindow(void) switch (selectedwindow) { case REGULATOR: regulator_win = win; - break; + break; case CLOCK: clock_win = win; - break; + break; case SENSOR: sensor_win = win; - break; + break; } selected_win = win; @@ -160,8 +160,8 @@ void show_header(void) wrefresh(header_win); werase(footer_win); - for (i=0; i (maxy-2)) + if ((i + 2) > (maxy-2)) break; - if(regulators_info[i].num_users > 0) + if (regulators_info[i].num_users > 0) wattron(regulator_win, WA_BOLD); else wattroff(regulator_win, WA_BOLD); print(regulator_win, col, count, "%s", - regulators_info[i].name); + regulators_info[i].name); col += 12; print(regulator_win, col, count, "%s", - regulators_info[i].status); + regulators_info[i].status); col += 12; print(regulator_win, col, count, "%s", - regulators_info[i].state); + regulators_info[i].state); col += 12; print(regulator_win, col, count, "%s", - regulators_info[i].type); + regulators_info[i].type); col += 12; print(regulator_win, col, count, "%d", - regulators_info[i].num_users); + regulators_info[i].num_users); col += 12; print(regulator_win, col, count, "%d", - regulators_info[i].microvolts); + regulators_info[i].microvolts); col += 12; print(regulator_win, col, count, "%d", - regulators_info[i].min_microvolts); + regulators_info[i].min_microvolts); col += 12; print(regulator_win, col, count, "%d", - regulators_info[i].max_microvolts); + regulators_info[i].max_microvolts); count++; } @@ -253,7 +253,7 @@ void print_sensor_header(void) wattroff(sensor_win, A_BOLD); wattron(sensor_win, A_BLINK); print(sensor_win, 0, 1, "Currently Sensor information available" - " only in Dump mode!"); + " only in Dump mode!"); wattroff(sensor_win, A_BLINK); wrefresh(sensor_win); } -- cgit v1.2.3