1
0
mirror of https://github.com/Tha14/toxic.git synced 2025-06-27 16:16:44 +02:00

Add missing braces to if/for/while blocks.

Astyle doesn't quite catch all of them.
This commit is contained in:
iphydf
2018-07-18 15:56:21 +00:00
parent a37bf300f9
commit f2b796940e
5 changed files with 29 additions and 19 deletions

View File

@ -304,9 +304,10 @@ void on_file_recv(Tox *m, uint32_t friendnumber, uint32_t filenumber, uint32_t k
size_t i;
for (i = 0; i < MAX_WINDOWS_NUM; ++i) {
if (windows[i].onFileRecv != NULL)
if (windows[i].onFileRecv != NULL) {
windows[i].onFileRecv(&windows[i], m, friendnumber, filenumber, file_size, (char *) filename,
filename_length);
}
}
}
@ -534,25 +535,27 @@ static void draw_bar(void)
continue;
}
if (windows + i == active_window)
if (windows + i == active_window) {
#ifdef URXVT_FIX
attron(A_BOLD | COLOR_PAIR(GREEN));
else
} else {
#endif
attron(A_BOLD);
}
draw_window_tab(&windows[i]);
if (windows + i == active_window)
if (windows + i == active_window) {
#ifdef URXVT_FIX
attroff(A_BOLD | COLOR_PAIR(GREEN));
else
} else {
#endif
attroff(A_BOLD);
}
}
// restore cursor position after drawing