summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorrodrigc <rodrigc@FreeBSD.org>2015-12-09 19:22:20 +0000
committerrodrigc <rodrigc@FreeBSD.org>2015-12-09 19:22:20 +0000
commit9fd05ef90da990f7eaea8b785f93631cffe65eae (patch)
tree09fe90000770b3d997b46fc677173923ccabd788 /lib
parenta3f731817a5eeb61bbe58dee91c4d2ed9a5d59a3 (diff)
downloadFreeBSD-src-9fd05ef90da990f7eaea8b785f93631cffe65eae.zip
FreeBSD-src-9fd05ef90da990f7eaea8b785f93631cffe65eae.tar.gz
Merge from OpenBSD:
revision 1.13 date: 2015/12/09 11:54:12; author: tb; state: Exp; lines: +2 -2 Add a cast to silence a compiler warning by clang on FreeBSD. From Craig Rodrigues. ok tedu@
Diffstat (limited to 'lib')
-rw-r--r--lib/libopenbsd/imsg.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libopenbsd/imsg.c b/lib/libopenbsd/imsg.c
index be0fdd1..279ab63 100644
--- a/lib/libopenbsd/imsg.c
+++ b/lib/libopenbsd/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>
@@ -74,7 +74,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);
OpenPOWER on IntegriCloud