Trivial cleanups
This commit is contained in:
+1
-1
@@ -132,7 +132,7 @@ int telnet_rx(tn_ctx_t * tcc, char *buf, size_t * plen)
|
||||
len = *plen;
|
||||
tcc->bytes_rx += len;
|
||||
|
||||
if (len < (size_t)tcc->off_rx)
|
||||
if (len < (size_t) tcc->off_rx)
|
||||
tcc->off_rx = 0;
|
||||
|
||||
for (s = buf + tcc->off_rx, rem = len - tcc->off_rx; rem > 0; s = p)
|
||||
|
||||
@@ -148,10 +148,10 @@ static void ttynvt_release(fuse_req_t req, struct fuse_file_info *info)
|
||||
close(tty->fds[FD_MASTER].fd);
|
||||
close(tty->fds[FD_SLAVE].fd);
|
||||
|
||||
(void)pthread_cancel(tty->thread_id);
|
||||
(void)pthread_join(tty->thread_id, NULL);
|
||||
(void)pthread_mutex_destroy(&tty->tty_lock);
|
||||
(void)pthread_mutex_destroy(&tty->poll_lock);
|
||||
pthread_cancel(tty->thread_id);
|
||||
pthread_join(tty->thread_id, NULL);
|
||||
pthread_mutex_destroy(&tty->tty_lock);
|
||||
pthread_mutex_destroy(&tty->poll_lock);
|
||||
|
||||
if (tty->ph)
|
||||
fuse_pollhandle_destroy(tty->ph);
|
||||
|
||||
Reference in New Issue
Block a user