Shorten initializer

This commit is contained in:
Benny Baumann 2020-11-02 21:32:20 +01:00
parent 1c060a9d6b
commit cb8bb12974
1 changed files with 1 additions and 3 deletions

View File

@ -143,9 +143,7 @@ void TraceScreen_updateTrace(InfoScreen* super) {
// FD_SET(STDIN_FILENO, &fds);
FD_SET(fd_strace, &fds);
struct timeval tv;
tv.tv_sec = 0;
tv.tv_usec = 500;
struct timeval tv = { .tv_sec = 0, .tv_usec = 500 };
int ready = select(fd_strace + 1, &fds, NULL, NULL, &tv);
size_t nread = 0;