diff options
author | 2015-12-09 11:54:12 +0000 | |
---|---|---|
committer | 2015-12-09 11:54:12 +0000 | |
commit | 44baa17f01cf05293ef0a920ef4c7db5ca0cb9cf (patch) | |
tree | f5e0f8e5bcee0c3388eb3969737d15bc9a08cd1b /lib/libutil | |
parent | Always pass a valid interface pointer to rtdeletemsg(). (diff) | |
download | wireguard-openbsd-44baa17f01cf05293ef0a920ef4c7db5ca0cb9cf.tar.xz wireguard-openbsd-44baa17f01cf05293ef0a920ef4c7db5ca0cb9cf.zip |
Add a cast to silence a compiler warning by clang on FreeBSD.
From Craig Rodrigues.
ok tedu@
Diffstat (limited to 'lib/libutil')
-rw-r--r-- | lib/libutil/imsg.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libutil/imsg.c b/lib/libutil/imsg.c index fbd44130da5..9047997c156 100644 --- a/lib/libutil/imsg.c +++ b/lib/libutil/imsg.c @@ -1,4 +1,4 @@ -/* $OpenBSD: imsg.c,v 1.12 2015/12/05 13:06:52 claudio Exp $ */ +/* $OpenBSD: imsg.c,v 1.13 2015/12/09 11:54:12 tb Exp $ */ /* * Copyright (c) 2003, 2004 Henning Brauer <henning@openbsd.org> @@ -72,7 +72,7 @@ imsg_read(struct imsgbuf *ibuf) again: if (getdtablecount() + imsg_fd_overhead + - (CMSG_SPACE(sizeof(int))-CMSG_SPACE(0))/sizeof(int) + (int)((CMSG_SPACE(sizeof(int))-CMSG_SPACE(0))/sizeof(int)) >= getdtablesize()) { errno = EAGAIN; free(ifd); |