diff options
author | Nicholas Marriott <nicm@cvs.openbsd.org> | 2009-11-13 18:07:53 +0000 |
---|---|---|
committer | Nicholas Marriott <nicm@cvs.openbsd.org> | 2009-11-13 18:07:53 +0000 |
commit | 44ca4ba86dc7ab4722c6f562d09e299e6e6700b8 (patch) | |
tree | 27aaa847401dfc81da00e8565cf05b7356aba8e5 | |
parent | e14678960cfbb93c17ec7c8a9a6d8543e091ff11 (diff) |
imsg_read returns ssize_t not int, pointed out by lint via deraadt.
-rw-r--r-- | usr.bin/tmux/client.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/tmux/client.c b/usr.bin/tmux/client.c index 3197b7c4e38..e7f516c4243 100644 --- a/usr.bin/tmux/client.c +++ b/usr.bin/tmux/client.c @@ -1,4 +1,4 @@ -/* $OpenBSD: client.c,v 1.32 2009/11/10 15:47:48 nicm Exp $ */ +/* $OpenBSD: client.c,v 1.33 2009/11/13 18:07:52 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net> @@ -253,7 +253,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) |