1
0
mirror of git://sourceware.org/git/lvm2.git synced 2025-08-03 08:22:00 +03:00

cleanup: move var declaration

This commit is contained in:
Zdenek Kabelac
2015-08-18 15:47:07 +02:00
parent 6e1feb0f73
commit abb24370e9
2 changed files with 3 additions and 3 deletions

View File

@ -539,6 +539,7 @@ void daemon_start(daemon_state s)
log_state _log = { { 0 } };
thread_state _threads = { .next = NULL };
unsigned timeout_count = 0;
fd_set in;
/*
* Switch to C locale to avoid reading large locale-archive file used by
@ -623,7 +624,6 @@ void daemon_start(daemon_state s)
while (!_shutdown_requested && !failed) {
_reset_timeout(s);
fd_set in;
FD_ZERO(&in);
FD_SET(s.socket_fd, &in);
if (select(FD_SETSIZE, &in, NULL, NULL, _get_timeout(s)) < 0 && errno != EINTR)