mirror of
https://github.com/tmux/tmux.git
synced 2024-12-13 18:38:48 +00:00
Sync OpenBSD patchset 536:
imsg_read returns ssize_t not int, pointed out by lint via deraadt.
This commit is contained in:
parent
72bc03ac4c
commit
0bb00a0df3
4
client.c
4
client.c
@ -1,4 +1,4 @@
|
||||
/* $Id: client.c,v 1.87 2009-11-10 23:28:53 tcunha Exp $ */
|
||||
/* $Id: client.c,v 1.88 2009-11-14 17:49:37 tcunha Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
|
||||
@ -257,7 +257,7 @@ client_signal(int sig, unused short events, unused void *data)
|
||||
void
|
||||
client_callback(unused int fd, short events, unused void *data)
|
||||
{
|
||||
int n;
|
||||
ssize_t n;
|
||||
|
||||
if (events & EV_READ) {
|
||||
if ((n = imsg_read(&client_ibuf)) == -1 || n == 0)
|
||||
|
Loading…
Reference in New Issue
Block a user