Browse Source

Add a cast to silence a compiler warning by clang on FreeBSD.

From Craig Rodrigues.
ok tedu@
OPENBSD_5_9
tb 8 years ago
parent
commit
a02ad43121
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      src/lib/libutil/imsg.c

+ 2
- 2
src/lib/libutil/imsg.c View File

@ -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);


Loading…
Cancel
Save