minor fix

This commit is contained in:
Maxim Devaev
2024-02-29 03:29:23 +02:00
parent ca3638313b
commit 7bacef7622
9 changed files with 15 additions and 15 deletions

View File

@@ -254,8 +254,8 @@ static void _drm_cleanup(us_drm_s *drm) {
run->n_bufs = 0;
}
US_CLOSE_FD(run->status_fd, close);
US_CLOSE_FD(run->fd, close);
US_CLOSE_FD(run->status_fd);
US_CLOSE_FD(run->fd);
run->crtc_id = 0;
run->next_n_buf = 0;
@@ -391,7 +391,7 @@ static int _drm_check_status(us_drm_s *drm) {
return (status_ch == 'd' ? -2 : 0);
error:
US_CLOSE_FD(run->status_fd, close);
US_CLOSE_FD(run->status_fd);
return -1;
}

View File

@@ -278,7 +278,7 @@ static void *_follower_thread(void *v_unix_follow) {
const bool online = !connect(fd, (struct sockaddr *)&addr, sizeof(addr));
atomic_store(&_g_ustreamer_online, online);
US_CLOSE_FD(fd, close); // cppcheck-suppress unreadVariable
US_CLOSE_FD(fd); // cppcheck-suppress unreadVariable
usleep(200 * 1000);
}